Skip to content

Commit

Permalink
Support tmux in zsh "new screen" mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
tpope committed Dec 16, 2015
1 parent e68d9ac commit fc57302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .zshrc
Expand Up @@ -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
Expand Down

0 comments on commit fc57302

Please sign in to comment.