Skip to content

Instantly share code, notes, and snippets.

@digitalm
Last active August 18, 2018 14:24
Show Gist options
  • Save digitalm/9a6e8e56a62a84975f843315e3501495 to your computer and use it in GitHub Desktop.
Save digitalm/9a6e8e56a62a84975f843315e3501495 to your computer and use it in GitHub Desktop.
setting up ( homebrew / git-completion )
# git-completion
$ curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.sh
$ chmod a+x ~/.git-completion.sh
# git-prompt
$ curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh -o ~/.git-prompt.sh
$ chmod a+x ~/.git-prompt.sh
$ vi ~/.bash_profile
```
# git-completion
source ~/.git-prompt.sh
source ~/.git-completion.sh
GIT_PS1_SHOWDIRTYSTATE=true
export PS1='\[\033[32m\]\u@\h\[\033[00m\]:\[\033[34m\]\w\[\033[31m\]$(__git_ps1)\[\033[00m\]\$ '
```
$ source ~/.bash_profile
# homebrew
$ xcode-select --install
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew doctor
$ => Your system is ready to brew.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment