Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # git tab auto-completion
- #
- # install bash-completion from mac ports
- # with this you also get tab completion for ssh and few others
- sudo port install bash-completion
- # add to your ~/.profile or ~/.bash_login as instructed by mac ports
- if [ -f /opt/local/etc/bash_completion ]; then
- . /opt/local/etc/bash_completion
- fi
- # add git completion support
- # copy over git-completion.bash from the contrib dir of your local install of git to bash_completion.d
- # or use attached copy
- sudo cp /usr/local/git/contrib/completion/git-completion.bash /opt/local/etc/bash_completion.d
- # set command prompt to display current git branch you are working on. very handy
- # add to your ~/.profile or ~/.bash_login
- PS1='\h:\W$(__git_ps1 "(%s)") \u\$ '
Add Comment
Please, Sign In to add comment