From 34c198c306e6a0bd0ae7d044e5fb37326dec628d Mon Sep 17 00:00:00 2001 From: Von Random Date: Tue, 10 Jul 2018 15:27:39 +0300 Subject: [PATCH] TIL there is a termcap named screen.xterm-new --- bashrc | 2 +- tmux.conf | 2 +- zshrc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bashrc b/bashrc index af0ca9b..ee1739f 100644 --- a/bashrc +++ b/bashrc @@ -112,7 +112,7 @@ tcmp() { local -A terms=( [rxvt-unicode-256color]='rxvt-unicode' [st-256color]='xterm-256color' - [tmux-256color]='screen-256color' + [tmux-256color]='screen.xterm-new' ) TERM="${terms[$TERM]:-$TERM}" "$@" } diff --git a/tmux.conf b/tmux.conf index b7b67a7..b5eac1c 100644 --- a/tmux.conf +++ b/tmux.conf @@ -9,7 +9,7 @@ bind > resize-pane -R 5 bind - resize-pane -D 5 bind + resize-pane -U 5 bind e choose-session -bind p command-prompt -p "ssh:" "new-session -As 'ssh'; new-window -n '%1' 'TERM=screen-256color ssh %%'" +bind p command-prompt -p "ssh:" "new-session -As 'ssh'; new-window -n '%1' 'TERM=screen.xterm-new ssh %%'" bind t command-prompt -p "attach pane to:" "join-pane -t :'%%'" bind y command-prompt break-pane bind -n M-w next-window diff --git a/zshrc b/zshrc index 2807391..b81f3b2 100644 --- a/zshrc +++ b/zshrc @@ -205,7 +205,7 @@ tcmp() { local -A terms=( 'rxvt-unicode-256color' 'rxvt-unicode' 'st-256color' 'xterm-256color' - 'tmux-256color' 'screen-256color' + 'tmux-256color' 'screen.xterm-new' ) TERM=${terms[$TERM]:-$TERM} "$@" }