diff fish/config.fish @ 407:c6da0c9f40ae

Replace subrepos with an install script. Finally.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 10 Jan 2018 00:00:00 -0800
parents c05a8f250042
children 61f343a2aaff
line wrap: on
line diff
--- a/fish/config.fish	Tue Dec 12 22:34:11 2017 -0800
+++ b/fish/config.fish	Wed Jan 10 00:00:00 2018 -0800
@@ -31,6 +31,9 @@
 if type -q hg
     set -g -x __local_has_hg
 end
+if test -e $HOME/.local/bin/fast-hg-bookmark
+    set -g -x __local_has_fast_hg_bookmark
+end
 
 # }}}
 
@@ -71,7 +74,8 @@
 end
 
 function hg_prompt
-    if set -q __local_has_hg
+    if set -q __local_has_hg 
+        and set -q __local_has_fast_hg_bookmark
         set_color magenta
         printf '%s' (fast-hg-bookmark 2>/dev/null)
         set_color normal
@@ -145,24 +149,12 @@
 
 # }}}
 
-# Virtualenv wrapper for Fish {{{
-
-#eval (python -m virtualfish)
-
-#set -g VIRTUALFISH_COMPAT_ALIASES # uncomment for virtualenvwrapper-style commands
-#. $HOME/.config/fish/virtualfish/virtual.fish
-# optional plugins
-#. path/to/auto_activation.fish
-#. path/to/global_requirements.fish
-#. path/to/projects.fish
-
-# }}}
-
 # Local Settings {{{
 
 if test -s $HOME/.config/fish/local.fish
     . $HOME/.config/fish/local.fish
 end
+#eval (/usr/local/bin/python -m virtualfish)
 
 # }}}