fix test in tmux-sessionizer
This commit is contained in:
parent
59c107f4d4
commit
46b61d5185
1 changed files with 3 additions and 3 deletions
|
@ -59,9 +59,9 @@ fi
|
|||
SEL_NAME=$(echo "$SEL_NAME" | tr "[:lower:]" "[:upper:]")
|
||||
|
||||
tmux new-session -d -s "$SEL_NAME" -c "$SEL_DIR"
|
||||
if [ -e "$TMUX" ]; then
|
||||
tmux switch-client -t "$SEL_NAME"
|
||||
else
|
||||
if [ -z "$TMUX" ]; then
|
||||
tmux attach -t "$SEL_NAME"
|
||||
else
|
||||
tmux switch-client -t "$SEL_NAME"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue