Created
July 8, 2011 03:37
-
-
Save AndrewRayCode/1071081 to your computer and use it in GitHub Desktop.
broken prompt
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
color() { | |
tput setaf $1 | |
shift | |
printf -- "$@" | |
tput sgr0 | |
} | |
color_yellow() { | |
color 3 "$@" | |
} | |
PS1='\n$(color_yellow \u)\w ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment