tide/tests/_tide_item_virtual_env.test.fish
Ilan Cosman 0c5ba87d56 Support pipenv in virtual_env item (#170)
Co-authored-by: William Brown <Will@WillJBrown.com>
2021-07-08 11:27:43 -07:00

20 lines
488 B
Fish

# RUN: %fish %s
function _virtual_env
_tide_decolor (_tide_item_virtual_env)
end
set -lx tide_virtual_env_icon ''
set -lx VIRTUAL_ENV
_virtual_env # CHECK:
set -lx VIRTUAL_ENV /home/ilan/python_project/non-generic-name
_virtual_env # CHECK:  non-generic-name
set -lx VIRTUAL_ENV /home/ilan/python_project/venv
_virtual_env # CHECK:  python_project
set -lx VIRTUAL_ENV /home/ilan/.local/share/virtualenvs/pipenv_project-EwRYuc3l
_virtual_env # CHECK:  pipenv_project