Last active
January 10, 2018 11:42
-
-
Save dklima/4040c8ed57d3fac88e496b2b1b69c938 to your computer and use it in GitHub Desktop.
bash prompt like "pure" theme from zsh (with current git branch)
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)/' | |
} | |
PS1="\n\[\033[94m\]\w\[\033[0m\]\$(parse_git_branch)\[\033[00m\]\n\[\033[1;35m\]❯\[\033[1;33m\] \[\033[0m\]" | |
export PS1 |
Author
dklima
commented
Jan 10, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment