mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-23 20:13:05 +03:00
11 lines
417 B
Fish
11 lines
417 B
Fish
function _tide_item_virtual_env
|
|
if set -l splitVirtualEnv (string split '/' "$VIRTUAL_ENV")
|
|
# Avoid printing a generic name
|
|
if contains -- $splitVirtualEnv[-1] virtualenv venv .venv env
|
|
_tide_print_item virtual_env $tide_virual_env_icon' ' $splitVirtualEnv[-2]
|
|
else
|
|
_tide_print_item virtual_env $tide_virual_env_icon' ' $splitVirtualEnv[-1]
|
|
end
|
|
end
|
|
end
|