TIL there is a termcap named screen.xterm-new
This commit is contained in:
parent
1b0679a10c
commit
34c198c306
3 changed files with 3 additions and 3 deletions
2
bashrc
2
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}" "$@"
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
2
zshrc
2
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} "$@"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue