mirror of https://github.com/bjeanes/dotfiles.git
Fix Tmux shell integration to not exit when tmux is not installed.
parent
8d5387acff
commit
ebe5d8ffe6
|
@ -15,8 +15,8 @@ if [ -z "$TMUX" ]; then
|
||||||
last_session="$(tmux list-windows -t login | tail -n1 | cut -d: -f1)"
|
last_session="$(tmux list-windows -t login | tail -n1 | cut -d: -f1)"
|
||||||
tmux new-session -t login \; new-window -a -t $last_session # Create a *new* session bound to "login" and create a new window
|
tmux new-session -t login \; new-window -a -t $last_session # Create a *new* session bound to "login" and create a new window
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
# When Tmux exits, we exit
|
# When Tmux exits, we exit
|
||||||
exit
|
exit
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue