mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-27 22:29:42 +03:00
29 lines
616 B
Fish
29 lines
616 B
Fish
@mesg '---------virtual_env---------'
|
|
|
|
function _virtual_env
|
|
_tide_decolor (_tide_item_virtual_env)
|
|
end
|
|
|
|
set -l dir ~/python_project
|
|
|
|
mkdir -p $dir
|
|
cd $dir
|
|
|
|
@test 'nothing' (_virtual_env) -z
|
|
|
|
python3 -m venv .venv
|
|
source .venv/bin/activate.fish
|
|
|
|
set -lx tide_virtual_env_icon ''
|
|
|
|
set -lx tide_virtual_env_display projectName
|
|
@test 'projectName' (_virtual_env) = " python_project"
|
|
|
|
set -lx tide_virtual_env_display venvName
|
|
@test 'venvName' (_virtual_env) = " .venv"
|
|
|
|
set -lx tide_virtual_env_icon
|
|
set -lx tide_virtual_env_display projectName
|
|
@test 'No icon' (_virtual_env) = "python_project"
|
|
|
|
rm -r $dir |