Last active
August 18, 2018 14:24
-
-
Save digitalm/9a6e8e56a62a84975f843315e3501495 to your computer and use it in GitHub Desktop.
setting up ( homebrew / git-completion )
This file contains 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
# 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