Update term window title

This commit is contained in:
lhark 2016-04-28 22:45:30 +02:00
parent 8014cfd6f8
commit 0e13b1bc44

11
zshrc
View file

@ -50,6 +50,12 @@ export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/bin/virtualenvwrapper.sh > /dev/null 2>&1 source /usr/local/bin/virtualenvwrapper.sh > /dev/null 2>&1
# Configuration for ROS
source /opt/ros/jade/setup.zsh > /dev/null 2>&1
export PYTHONPATH=/opt/ros/jade/lib/python2.7/site-packages:$PYTHONPATH
export PKG_CONFIG_PATH="/opt/ros/jade/lib/pkgconfig:$PKG_CONFIG_PATH"
# Configuration pour wine # Configuration pour wine
alias steam-wine='WINEDEBUG=-all wine ~/.wine/drive_c/Program\ Files/Steam/Steam.exe -no-dwrite >/dev/null 2>&1 &' alias steam-wine='WINEDEBUG=-all wine ~/.wine/drive_c/Program\ Files/Steam/Steam.exe -no-dwrite >/dev/null 2>&1 &'
@ -95,11 +101,14 @@ alias -g ........='../../../../../../..'
case $TERM in case $TERM in
xterm*) xterm*)
preexec () { preexec () {
print -Pn "\e]0;$1 -- ${USER}@${HOST}\a" print -Pn "\e]0;xterm - ${HOST} - ${PWD}\a"
} }
;; ;;
# Fix broken ssh with st # Fix broken ssh with st
st*) st*)
preexec () {
print -Pn "\e]0;st - ${HOST} - ${PWD}\a"
}
alias ssh='TERM=xterm ssh -A' alias ssh='TERM=xterm ssh -A'
;; ;;
esac esac