|
|
@@ -2,7 +2,7 @@
|
|
|
while true; do
|
|
|
tput civis;
|
|
|
items=("zsh" "alpha")
|
|
|
- items+=("${(@f)$(tmux list-sessions -F '#S' | grep -v '^alpha$' | cat - <(echo 'beta\ngamma') | uniq | head -n 2)}")
|
|
|
+ items+=("${(@f)$(tmux list-sessions -F '#S' 2> /dev/null | grep -v '^alpha$' | cat - <(echo 'beta\ngamma') | uniq | head -n 2)}")
|
|
|
items+=("${(z)$(~/.scripts/ssh_launch.zsh 2)}")
|
|
|
printf "\r\n"
|
|
|
printf " Welcome to \e[31m${TERM}\e[0m, \e[33m${USER}\e[0m@\e[33m${HOST}\e[0m.\n"
|
|
|
@@ -38,7 +38,7 @@ while true; do
|
|
|
/bin/zsh
|
|
|
;;
|
|
|
r|"")
|
|
|
- tmux new-session -A -s ${items[2]}
|
|
|
+ tmux new-session -A -s ${items[2]} "timeout 60s /bin/zsh ~/.scripts/project_launch.zsh"
|
|
|
;;
|
|
|
s)
|
|
|
tmux new-session -A -s ${items[3]}
|