Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revisionBoth sides next revision
prompt [2017/08/30 09:33] – [On Mac] Rike-Benjamin Schuppnerprompt [2017/09/01 14:08] – [On Mac] highliting Zbigniew Jędrzejewski-Szmek
Line 24: Line 24:
 Edit `~/.bash_profile` Edit `~/.bash_profile`
  
-    if [ -f $(brew --prefix)/etc/bash_completion.d/git-prompt.sh ]; then +<code bash> 
-         . $(brew --prefix)/etc/bash_completion.d/git-prompt.sh +if [ -f $(brew --prefix)/etc/bash_completion.d/git-prompt.sh ]; then 
-    fi +     . $(brew --prefix)/etc/bash_completion.d/git-prompt.sh 
-     +fi 
-    export GIT_PS1_SHOWDIRTYSTATE=1 + 
-    export GIT_PS1_SHOWSTASHSTATE=1 +export GIT_PS1_SHOWDIRTYSTATE=1 
-    export GIT_PS1_SHOWUNTRACKEDFILES=1 +export GIT_PS1_SHOWSTASHSTATE=1 
-    # export GIT_PS1_SHOWUPSTREAM=verbose +export GIT_PS1_SHOWUNTRACKEDFILES=1 
-    # export GIT_PS1_DESCRIBE_STYLE=branch +# export GIT_PS1_SHOWUPSTREAM=verbose 
-    export PROMPT_COMMAND='__git_ps1 "\u@\h:\w" " \\\$ "' +# export GIT_PS1_DESCRIBE_STYLE=branch 
-    export GIT_PS1_SHOWCOLORHINTS=1 +export PROMPT_COMMAND='__git_ps1 "\u@\h:\w" " \\\$ "' 
-    +export GIT_PS1_SHOWCOLORHINTS=1 
 +</code> 
 (Works only with the homebrew version of git.) (Works only with the homebrew version of git.)