Adds open-local to siteEnv
這個提交存在於:
父節點
1c9e21e1a6
當前提交
7e07712902
共有 1 個檔案被更改,包括 9 行新增 和 1 行删除
10
bin/siteEnv
10
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" &
|
||||
|
||||
open-local
|
||||
if [ "$open" = "Yes" ]; then
|
||||
open-local
|
||||
fi
|
||||
|
|
載入中…
新增表格
新增連結
新增問題並參考