-
-
Save slbelden/66735625067740719e55972c45ac3559 to your computer and use it in GitHub Desktop.
My Bash 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
#!/usr/bin/env bash | |
# green if user, red if root | |
if [ "$EUID" -ne 0 ]; then | |
PS1='\[\e[0;92m\]\u@\H\[\e[0m\]:\[\e[0;94m\]\w\[\e[0m\]$ ' | |
else | |
PS1='\[\e[0;91m\]\u@\H\[\e[0m\]:\[\e[0;94m\]\w\[\e[0m\]# ' | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment