Skip to content

Instantly share code, notes, and snippets.

View JacksonBailey's full-sized avatar

Jackson Bailey JacksonBailey

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jacksonbailey on github.
  • I am jacksonbailey (https://keybase.io/jacksonbailey) on keybase.
  • I have a public key ASCZB8ACBIJsW1PwWD2yFkHAqxPj55IjLP_FLeSXtSWNGQo

To claim this, I am signing this object:

@JacksonBailey
JacksonBailey / bash_prompt.sh
Last active March 19, 2020 19:56
A very simple bash prompt that is red for root and green for other users. If you are using CentOS place in /etc/profile.d to have it apply globally
# are we an interactive shell?
if [ "$PS1" ]; then
if [ $(id -u) = 0 ]; then
PROMPT_COLOR="$(tput setaf 1)"
else
PROMPT_COLOR="$(tput setaf 2)"
fi
PS1="\[${PROMPT_COLOR}\][\u@\h \w]\\$ \[$(tput sgr0)\]"
fi