Skip to content

Instantly share code, notes, and snippets.

@dfm
Created July 3, 2011 15:29
Show Gist options
  • Save dfm/1062318 to your computer and use it in GitHub Desktop.
Save dfm/1062318 to your computer and use it in GitHub Desktop.
screen2
# command prompt... HOLY SHIT MAGIC!
case $TERM in
screen*)
SCREENTITLE='\[\ek\e\\\]\[\ek\W\e\\\]'
;;
*)
SCREENTITLE=''
;;
esac
export PS1="${SCREENTITLE}[\u@\h \W]\$ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment