export EDITOR=/usr/bin/vi # Set the screen title case $TERM in screen*) # This is the escape sequence ESC k \w ESC \ #Use path as titel #SCREENTITLE='\[\ek\w\e\\\]' #Use program name as titel SCREENTITLE='\[\ek\e\\\]' ;; *) SCREENTITLE='' ;; esac PS1="${SCREENTITLE}${PS1}"