changeset 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 91652f4b9752
children 294cda8cf097
files fish/config.fish
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/fish/config.fish	Tue Jun 11 20:41:27 2019 -0700
+++ b/fish/config.fish	Sat Feb 15 22:20:52 2020 -0800
@@ -87,6 +87,8 @@
         if git branch >/dev/null 2>/dev/null 
             printf '±' ; return
         end
+    end
+    if set -q __local_has_hg
         if hg root >/dev/null 2>/dev/null
             printf '☿' ; return
         end