1
0
Fork 0

TIL there is a termcap named screen.xterm-new

This commit is contained in:
Von Random 2018-07-10 15:27:39 +03:00
parent 1b0679a10c
commit 34c198c306
3 changed files with 3 additions and 3 deletions

2
bashrc
View file

@ -112,7 +112,7 @@ tcmp() {
local -A terms=( local -A terms=(
[rxvt-unicode-256color]='rxvt-unicode' [rxvt-unicode-256color]='rxvt-unicode'
[st-256color]='xterm-256color' [st-256color]='xterm-256color'
[tmux-256color]='screen-256color' [tmux-256color]='screen.xterm-new'
) )
TERM="${terms[$TERM]:-$TERM}" "$@" TERM="${terms[$TERM]:-$TERM}" "$@"
} }

View file

@ -9,7 +9,7 @@ bind > resize-pane -R 5
bind - resize-pane -D 5 bind - resize-pane -D 5
bind + resize-pane -U 5 bind + resize-pane -U 5
bind e choose-session 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 t command-prompt -p "attach pane to:" "join-pane -t :'%%'"
bind y command-prompt break-pane bind y command-prompt break-pane
bind -n M-w next-window bind -n M-w next-window

2
zshrc
View file

@ -205,7 +205,7 @@ tcmp() {
local -A terms=( local -A terms=(
'rxvt-unicode-256color' 'rxvt-unicode' 'rxvt-unicode-256color' 'rxvt-unicode'
'st-256color' 'xterm-256color' 'st-256color' 'xterm-256color'
'tmux-256color' 'screen-256color' 'tmux-256color' 'screen.xterm-new'
) )
TERM=${terms[$TERM]:-$TERM} "$@" TERM=${terms[$TERM]:-$TERM} "$@"
} }