Add current command to window title
This commit is contained in:
parent
0e13b1bc44
commit
d1114305a5
1 changed files with 2 additions and 2 deletions
4
zshrc
4
zshrc
|
@ -101,13 +101,13 @@ alias -g ........='../../../../../../..'
|
|||
case $TERM in
|
||||
xterm*)
|
||||
preexec () {
|
||||
print -Pn "\e]0;xterm - ${HOST} - ${PWD}\a"
|
||||
print -Pn "\e]0;xterm - $1 - ${HOST} - ${PWD}\a"
|
||||
}
|
||||
;;
|
||||
# Fix broken ssh with st
|
||||
st*)
|
||||
preexec () {
|
||||
print -Pn "\e]0;st - ${HOST} - ${PWD}\a"
|
||||
print -Pn "\e]0;st - $1 - ${HOST} - ${PWD}\a"
|
||||
}
|
||||
alias ssh='TERM=xterm ssh -A'
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue