Created
March 30, 2019 19:00
-
-
Save codemodify/8040b85f1a732b459b417be65ca3a889 to your computer and use it in GitHub Desktop.
ArchLinux-Bash-Prompt.sh
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
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
parse_git_branch2() { git describe --contains --all HEAD 2>/dev/null; } | |
PS1="\n[\u | \d \@ | \e[38;0;41m\w\e[0m \e[30;1;47m\$(parse_git_branch)\e[0m] \n-> " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment