fish: functions/fish_prompt: Add virtualfish
This commit is contained in:
parent
66cda3ef9b
commit
a319c28964
2 changed files with 8 additions and 0 deletions
4
fish/.config/fish/conf.d/virtualfish-loader.fish
Normal file
4
fish/.config/fish/conf.d/virtualfish-loader.fish
Normal 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
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue