Created
July 3, 2011 15:29
-
-
Save dfm/1062318 to your computer and use it in GitHub Desktop.
screen2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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