me=`whoami` PROMPT_COMMAND='_dir=`pwd`;if [ ${#_dir} -ge 35 ]; then _mydir=`pwd | cut -c1-16`; _mydir=${_mydir}.../`pwd | rev | cut -d/ -f1 | rev`; else _mydir=`pwd`; fi; _mydir=`echo $_mydir | sed "s/^\/home\/$me/~/g"`; PS1="\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u\[\033[1;33m\]@\[\033[1;32m\]\h\[\033[00m\]:\[\033[0;36m\]$_mydir\[\033[00m\]\$ "'