]> git.huck.website - zshmux.git/commitdiff
Vim quick push
authorHuck Boles <huboles@protonmail.com>
Sun, 25 Sep 2022 01:14:19 +0000 (20:14 -0500)
committerHuck Boles <huboles@protonmail.com>
Sun, 25 Sep 2022 01:14:19 +0000 (20:14 -0500)
zshmux.zsh

index 59bc47a50f2fdb2252c340601cdc95c1fa899665..3e9d9cfdb67fd125f4b6107b80e1cdb976173c62 100644 (file)
@@ -8,12 +8,12 @@ if [[ -z $TMUX ]]; then
         printf '\n\033[34;1mNo \033[33;1mtmux \033[34;1msessions active\n'
     fi
     printf '\033[34;1mAttach session?\033[0;m: [\033[35;1mname\033[0m] \033[37;2m(empty if none)\033[0m: '
-    read response
-    if [ -n "$response" ]; then
-        if tmux list-sessions | grep -q "$response"; then
-            tmux attach-session -t $response 
+    read sesh
+    if [ -n "$sesh" ]; then
+        if tmux list-sessions | grep -q "$sesh"; then
+            tmux attach-session -t $sesh 
         else
-            tmux new-session -s $response
+            tmux new-session -s $sesh
         fi
     fi
 fi