tvim support, cleanup and better s() func
This commit is contained in:
parent
b992f92516
commit
6b4fe587cd
3 changed files with 14 additions and 14 deletions
8
zshrc
8
zshrc
|
@ -236,10 +236,10 @@ s() {
|
|||
local -A terms tempterm ssh
|
||||
ssh=$(whence ssh)
|
||||
terms=(
|
||||
'st' 'xterm'
|
||||
'tmux' 'screen'
|
||||
'rxvt-unicode-256color' 'rxvt-unicode'
|
||||
'st-256color' 'xterm-256color'
|
||||
'tmux-256color' 'screen-256color'
|
||||
)
|
||||
tempterm=${TERM%%-256color}
|
||||
TERM=${TERMS[$tempterm]-$tempterm} $ssh "$@"
|
||||
TERM=${terms[$TERM]-$TERM} $ssh "$@"
|
||||
}
|
||||
# }}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue