Mercurial > dotfiles
comparison fish/config.fish @ 480:9df781913175
Show mercurial fish prompt only if it's installed.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 15 Feb 2020 22:20:52 -0800 |
parents | 4f6af3e668eb |
children |
comparison
equal
deleted
inserted
replaced
479:91652f4b9752 | 480:9df781913175 |
---|---|
85 function prompt_char | 85 function prompt_char |
86 if set -q __local_has_git | 86 if set -q __local_has_git |
87 if git branch >/dev/null 2>/dev/null | 87 if git branch >/dev/null 2>/dev/null |
88 printf '±' ; return | 88 printf '±' ; return |
89 end | 89 end |
90 end | |
91 if set -q __local_has_hg | |
90 if hg root >/dev/null 2>/dev/null | 92 if hg root >/dev/null 2>/dev/null |
91 printf '☿' ; return | 93 printf '☿' ; return |
92 end | 94 end |
93 echo '○' | 95 echo '○' |
94 end | 96 end |