Adds open-local to siteEnv

Jonathan Hodgson 6 years ago
parent 3ee0f5e4bb
commit d35292a05a
  1. 8
      bin/siteEnv

@ -1,16 +1,22 @@
#!/usr/bin/env zsh
source "$HOME/.dotfiles/shells/functions"
sitesDir="$HOME/Sites/"
chosen="$(ls -d ${sitesDir}*/ | sed "s+$sitesDir++g; s/\/$//" | rofi -dmenu -i -p "Site")"
open="$(echo -n "Yes\nNo" | rofi -dmenu -i -p "Open the local site")"
siteDir="${sitesDir}${chosen}/"
cd "$siteDir"
theme
setsid "$TERMINAL" &
setsid "$TERMINAL" &
setsid "$TERMINAL" &
@ -24,4 +30,6 @@ i3-msg "split horizontal"
setsid "$TERMINAL" &
if [ "$open" = "Yes" ]; then
open-local
fi

Loading…
Cancel
Save