Bugfix fish_prompt

This commit is contained in:
2020-06-24 21:49:33 +02:00
parent 17d08e039b
commit 52359079de

View File

@ -20,7 +20,7 @@ function prompt::pyenv
if set -q VIRTUAL_ENV
set venv (echo "$VIRTUAL_ENV" | grep -Eo '[^/]+/?$' | cut -d / -f1)
echo -n -s (printf '%s' \U1F40D)(yellow)"["(cyan)"$venv"(off)"@$python_version"(yellow)"]"(off)
echo -n -s (printf '%s' \U1F40D)(yellow)"["(cyan)"$venv"(yellow)"@"(off)"$python_version"(yellow)"]"(off)
else if test -n "$PYENV_VERSION"; and [ "$PYENV_VERSION" != "$python_version" ]
# echo -n -s (yellow)(printf '%s' \U1F40D)"["(cyan)(pyenv version-name | sed 's/:.*$//' )(off)"@$python_version"(yellow)"]"(off)
echo -n -s (yellow)(printf '%s' \U1F40D)"["(cyan)(pyenv version-name )(off)"@$python_version"(yellow)"]"(off)