Created
March 15, 2018 16:01
-
-
Save v3l0c1r4pt0r/68909d2271cdd80823c33c76f4517f6b to your computer and use it in GitHub Desktop.
Make your prompt colorful
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
#!/bin/bash | |
#usage: source colorme.sh [color] | |
color='37' | |
if [ $# -ge 1 ]; then | |
color="$1" | |
fi; | |
export PS1="\[\033[1;${color}m\][\u@\h \W]\$ \[\033[0m\]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment