Colin Powell 6 rokov pred
rodič
commit
fc6fedab75

+ 2 - 0
fish/.config/fish/config.fish

@@ -2,5 +2,7 @@ thefuck --alias | source
 source ~/.asdf/asdf.fish
 set PATH ~/.fzf/bin $PATH
 fzf_key_bindings
+eval (python -m virtualfish)
+
 #xinput set-prop "SynPS/2 Synaptics TouchPad" "Synaptics ClickPad" 0 
 #xinput set-prop "SynPS/2 Synaptics TouchPad" "Synaptics Tap Action" 0  

+ 3 - 0
fish/.config/fish/functions/fish_prompt.fish

@@ -181,6 +181,9 @@ function fish_prompt -d "Write out the left prompt of the syl20bnr theme"
     set ps_end $ps_end$ps_end
   end
   # last status give the color of the right arrows at the end of the prompt
+  if set -q VIRTUAL_ENV
+      echo -n -s (set_color -b blue white) "[" (basename "$VIRTUAL_ENV") "]" (set_color normal) " "
+  end
   if test $last_status -ne 0 
     set ps_end $colnormal$colbred$ps_end
   else