Last active
August 22, 2017 23:53
-
-
Save xdevs23/d511e757f0d6dc81f633a5646c67c709 to your computer and use it in GitHub Desktop.
PS1 for bash: Slim Arrows with Colors (Blue, Green and Turquoise)
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
# 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