Skip to content

Instantly share code, notes, and snippets.

@AndrewRayCode
Created July 8, 2011 03:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndrewRayCode/1071081 to your computer and use it in GitHub Desktop.
Save AndrewRayCode/1071081 to your computer and use it in GitHub Desktop.
broken prompt
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