소스 검색

feat(alacritty): launch terminal into project selection

Joe 1 년 전
부모
커밋
8f88d2fd50
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      .scripts/terminal_launch.zsh

+ 2 - 2
.scripts/terminal_launch.zsh

@@ -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]}