Add fish prompt changing (#475)

This commit is contained in:
Romir K
2024-02-12 09:58:27 +00:00
committed by GitHub
parent 2b2b87a25a
commit 0f83c33a3b
6 changed files with 125 additions and 7 deletions

View File

@@ -82,6 +82,13 @@ if [ -n "\$_OLD_VIRTUAL_PYTHONHOME" ];
set -gx PYTHONHOME "\$_OLD_VIRTUAL_PYTHONHOME";
set -e _OLD_VIRTUAL_PYTHONHOME;
end;
# check if old prompt function exists
if functions -q _pyenv_old_prompt
# remove old prompt function if exists.
functions -e fish_prompt
functions -c _pyenv_old_prompt fish_prompt
functions -e _pyenv_old_prompt
end
if functions -q deactivate;
functions -e deactivate;
end;