Skip to content

Instantly share code, notes, and snippets.

@saihoooooooo
Last active December 27, 2015 10:59
Show Gist options
  • Select an option

  • Save saihoooooooo/7315407 to your computer and use it in GitHub Desktop.

Select an option

Save saihoooooooo/7315407 to your computer and use it in GitHub Desktop.
Git setting for bash.
#!/bin/bash
curl -oL https://raw.github.com/git/git/master/contrib/completion/git-completion.bash ~/git-completion.bash
curl -oL https://raw.github.com/git/git/master/contrib/completion/git-prompt.sh ~/git-prompt.sh
cat >> ~/.bashrc << \EOF
# Completion and display of git branch
source ~/git-completion.bash
source ~/git-prompt.sh
PS1='[\u@\h \W$(__git_ps1 ":%s")]\$ '
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment