fish: functions/fish_prompt: Add virtualfish

This commit is contained in:
Sanchayan Maity 2022-03-15 00:06:36 +05:30
parent 66cda3ef9b
commit a319c28964
2 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1,4 @@
set -g VIRTUALFISH_VERSION 2.5.4
set -g VIRTUALFISH_PYTHON_EXEC /usr/bin/python
source /usr/lib/python3.10/site-packages/virtualfish/virtual.fish
emit virtualfish_did_setup_plugins

View file

@ -75,4 +75,8 @@ function fish_prompt
if set -q SSH_TTY if set -q SSH_TTY
set -g fish_color_host brred set -g fish_color_host brred
end end
if set -q VIRTUAL_ENV
echo -n -s (set_color -b blue white) "(" (basename "$VIRTUAL_ENV") ")" (set_color normal) " "
end
end end