Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Last revisionBoth sides next revision
prompt [2017/09/01 14:08] – [On Mac] highliting Zbigniew Jędrzejewski-Szmekprompt [2017/09/01 14:27] – [On Mac] Zbigniew Jędrzejewski-Szmek
Line 26: Line 26:
 <code bash> <code bash>
 if [ -f $(brew --prefix)/etc/bash_completion.d/git-prompt.sh ]; then if [ -f $(brew --prefix)/etc/bash_completion.d/git-prompt.sh ]; then
-     . $(brew --prefix)/etc/bash_completion.d/git-prompt.sh+     . $(brew --prefix)/etc/bash_completion.d/git-prompt.sh        # This path might need to be adjusted
 fi fi
  
Line 39: Line 39:
  
 (Works only with the homebrew version of git.) (Works only with the homebrew version of git.)
 +
 +==== Missing ''git-prompt.sh'' ====
 +
 +Under both Linux and Mac, if you cannot find ''git-prompt.sh'', just get the latest version from git git
 +https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh,
 +save it anywhere in the home directory, and put the path to it in the line annotated with "This path might need to be adjusted".