Differences

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

Link to this comparison view

Both sides previous revision Previous revision
prompt [2017/09/01 14:27] – [On Mac] Zbigniew Jędrzejewski-Szmekprompt [2017/09/01 14:28] (current) – [On Linux] Zbigniew Jędrzejewski-Szmek
Line 7: Line 7:
 <code bash> <code bash>
 for candidate in /usr/share/git-core/contrib/completion/git-prompt.sh /usr/lib/git-core/git-sh-prompt; do for candidate in /usr/share/git-core/contrib/completion/git-prompt.sh /usr/lib/git-core/git-sh-prompt; do
 +    # This path might need to be adjusted ^^^
     ! type __git_ps1 &>/dev/null && [ -e $candidate ] && . $candidate     ! type __git_ps1 &>/dev/null && [ -e $candidate ] && . $candidate
 done done