Skip to content

Instantly share code, notes, and snippets.

@xdevs23
Last active August 22, 2017 23:53
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 xdevs23/d511e757f0d6dc81f633a5646c67c709 to your computer and use it in GitHub Desktop.
Save xdevs23/d511e757f0d6dc81f633a5646c67c709 to your computer and use it in GitHub Desktop.
PS1 for bash: Slim Arrows with Colors (Blue, Green and Turquoise)
# How to apply:
# Put the content below in your .bashrc or whatever you use
if [ "$(whoami)" == "root" ]; then
PS1_U_COL=160
PS1_U_COL_A=124
else
PS1_U_COL=39
PS1_U_COL_A=25
fi
PS1="\[\e[1;90m\]\\$ \\[\e[1;38;5;${PS1_U_COL_A}m\]$(echo -e '\ue0b1')\[\e[1;38;5;${PS1_U_COL}m\] \u \[\e[1;38;5;22m\]$(echo -e '\ue0b1')\[\e[1;38;5;70m\] \h \[\e[1;38;5;23m\]$(echo -e '\ue0b1')\[\e[1;38;5;36m\] \w \[\e[1;90m\]$(echo -e '\ue0b1')\[\e[0m\] "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment