From fc57302c614430ef76231902e652198c4302a9dd Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 13 Dec 2015 18:01:41 -0500 Subject: [PATCH] Support tmux in zsh "new screen" mapping --- .zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 87e5ca2..d1e8681 100644 --- a/.zshrc +++ b/.zshrc @@ -318,10 +318,10 @@ bindkey -M vicmd ga what-cursor-position new-screen() { [ -z "$STY" ] || screen < "$TTY" + [ -z "$TMUX" ] || tmux new-window } zle -N new-screen [[ -z "$terminfo[kf12]" ]] || bindkey "$terminfo[kf12]" new-screen -[[ -z "$terminfo[kf11]" ]] || bindkey -s "$terminfo[kf11]" "^Ascreen ^E\n" autoload -Uz edit-command-line zle -N edit-command-line