Last active
January 11, 2022 16:51
-
-
Save pioz/27b9d7ace50ff4f9ec6c9308d179981d to your computer and use it in GitHub Desktop.
Pioz Bash prompt customization
This file contains hidden or 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
| parse_git_branch() { | |
| test -d .git && echo "($(git rev-parse --abbrev-ref HEAD)) " | |
| } | |
| # PS1='\u@\h:\W $(parse_git_branch)\$ ' without colors | |
| PS1='\e[0;33m\u@\h\e[m:\W \e[0;36m$(parse_git_branch)\e[m\e[0;33m\$\e[m ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment