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]
zbyszek [On Mac]
prompt [2017/09/01 14:28] (current)
zbyszek [On Linux]
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
  • prompt
  • Last modified: 2 years ago
  • by zbyszek