GIT command autocomplete in mac
In your home folder create / update .profile with the follow
if [ -f /usr/local/git/contrib/completion/git-completion.bash ]; then . /usr/local/git/contrib/completion/git-completion.bash fi GIT_PS1_SHOWDIRTYSTATE=true PS1='\[\033[32m\]\u@\h\[\033[00m\]:\[\033[34m\]\w\[\033[31m\]$(__git_ps1)\[\033[00m\]\$ '
if the /usr/local/git/contrib/completion/git-completion.bash is missing you can get that from here
Share your thoughts, post a comment.
You must be logged in to post a comment.