mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-12 12:54:00 +03:00
11 lines
404 B
Fish
11 lines
404 B
Fish
function _tide_item_virtual_env
|
|
if set -l splitVirtualEnv (string split '/' "$VIRTUAL_ENV")
|
|
set_color $tide_virtual_env_color
|
|
|
|
if test "$tide_virtual_env_display_mode" = 'venvName'
|
|
printf '%s' $tide_virtual_env_icon' ' $splitVirtualEnv[-1]
|
|
else # Default to projectName
|
|
printf '%s' $tide_virtual_env_icon' ' $splitVirtualEnv[-2]
|
|
end
|
|
end
|
|
end |