added tmux code

This commit is contained in:
L. Kraven
2024-06-20 19:04:18 -07:00
parent 0d38a06b72
commit ddf57cb1f9

11
.zshrc
View File

@@ -112,3 +112,14 @@ eval $(thefuck --alias)
eval $(thefuck --alias fk)
zinit light Aloxaf/fzf-tab
if [[ -z "$TMUX" ]]; then
tmux has-session &> /dev/null
if [ $? -eq 1 ]; then
exec tmux new -s ssh_session
exit
else
exec tmux attach -t ssh_session
exit
fi
fi