Skip to content

Instantly share code, notes, and snippets.

@kyab
Created May 20, 2011 14:00
Show Gist options
  • Save kyab/982937 to your computer and use it in GitHub Desktop.
Save kyab/982937 to your computer and use it in GitHub Desktop.
set prompt for #, not $ when sudo bash
#anyhow,we should use \\$, not \$..
#https://discussions.apple.com/thread/1265800?threadID=1265800
#I think alsp \\\$ should work.
export PS1="\[\033[36m\][\u@\h:\w]\\$ \[\033[0m\]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment