Skip to content

Instantly share code, notes, and snippets.

@v3l0c1r4pt0r
Created March 15, 2018 16:01
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 v3l0c1r4pt0r/68909d2271cdd80823c33c76f4517f6b to your computer and use it in GitHub Desktop.
Save v3l0c1r4pt0r/68909d2271cdd80823c33c76f4517f6b to your computer and use it in GitHub Desktop.
Make your prompt colorful
#!/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