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
## Print nickname for git/hg/bzr/svn version control in CWD | |
## Optional $1 of format string for printf, default "(%s) " | |
if [[ ! -f ~/.git-prompt.sh ]]; then | |
curl -o ~/.git-prompt.sh https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh | |
fi | |
. ~/.git-prompt.sh | |
function get_version_ctl_branch() { | |
local dir="$PWD" |