From fc6fedab75d38457174bee0c50510430bc48cf53 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Wed, 29 May 2019 22:01:18 -0400 Subject: [PATCH] Add virtualfish --- fish/.config/fish/config.fish | 2 ++ fish/.config/fish/functions/fish_prompt.fish | 3 +++ 2 files changed, 5 insertions(+) diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish index c93a246..deb6b81 100644 --- a/fish/.config/fish/config.fish +++ b/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 diff --git a/fish/.config/fish/functions/fish_prompt.fish b/fish/.config/fish/functions/fish_prompt.fish index 2824b1a..306fd8c 100644 --- a/fish/.config/fish/functions/fish_prompt.fish +++ b/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