diff --git a/functions/_tide_item_python.fish b/functions/_tide_item_python.fish index 57f7075..2e35170 100644 --- a/functions/_tide_item_python.fish +++ b/functions/_tide_item_python.fish @@ -9,7 +9,7 @@ function _tide_item_python # pipenv $VIRTUAL_ENV looks like /home/ilan/.local/share/virtualenvs/pipenv_project-EwRYuc3l # Detect whether we are using pipenv by looking for 'virtualenvs'. If so, remove the hash at the end. if test "$dir" = virtualenvs - string match -qr "(?.*)-.*" $base + string match -qr "(?[^/-]*)" $base _tide_print_item python $tide_python_icon' ' "$v ($base)" else if contains -- "$base" virtualenv venv .venv env # avoid generic names _tide_print_item python $tide_python_icon' ' "$v ($dir)"