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
# Display the git branch if current folder is a git repo. | |
# the small square before the branch name is the unicdeo symbo \ue0a0 | |
# | |
# ┌─[user@host:folder git_branch] | |
# └> $ | |
# | |
# Install git-prompt.sh as ~/.git-prompt.sh (https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh) | |
# Add the following line in your ~/.bashrc | |
[ -f ~/.git-prompt.sh ] && source ~/.git-prompt.sh |