소스 검색

Add virtualfish

Colin Powell 6 년 전
부모
커밋
fc6fedab75
2개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      fish/.config/fish/config.fish
  2. 3 0
      fish/.config/fish/functions/fish_prompt.fish

+ 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