mirror of
https://github.com/bertptrs/vimconfig.git
synced 2025-12-25 20:40:32 +01:00
Bugfix tmux start
Zsh does not preserve aliases when using exec (known bug?) so instead we just call and exit after.
This commit is contained in:
@@ -1,10 +1,11 @@
|
|||||||
# If connected over SSH and not already in tmux, start tmux.
|
# If connected over SSH and not already in tmux, start tmux.
|
||||||
if [[ -o interactive ]] && [[ -n $SSH_TTY ]] && [[ -z $TMUX ]] && hash tmux &> /dev/null; then
|
if [[ -o interactive ]] && [[ -n $SSH_TTY ]] && [[ -z $TMUX ]] && hash tmux &> /dev/null; then
|
||||||
if tmux has-session &> /dev/null; then
|
if tmux has-session &> /dev/null; then
|
||||||
exec tmux attach
|
tmux attach
|
||||||
else
|
else
|
||||||
exec tmux
|
tmux
|
||||||
fi
|
fi
|
||||||
|
exit $?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
bindkey -e
|
bindkey -e
|
||||||
|
|||||||
Reference in New Issue
Block a user