From 3639a51172ebecfa0e7d2ac047ed0c98e5e8c30d Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Sun, 6 Nov 2016 14:42:44 +0100 Subject: [PATCH] Bugfix tmux start Zsh does not preserve aliases when using exec (known bug?) so instead we just call and exit after. --- zsh/.zshrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 99ea70f..f83c9ea 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -1,10 +1,11 @@ # 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 tmux has-session &> /dev/null; then - exec tmux attach + tmux attach else - exec tmux + tmux fi + exit $? fi bindkey -e