mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-23 20:13:05 +03:00
23 lines
445 B
Fish
23 lines
445 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_display projectName
|
|
@test 'projectName' (_virtual_env) = 'python_project'
|
|
|
|
set -lx tide_virtual_env_display venvName
|
|
@test 'venvName' (_virtual_env) = '.venv'
|
|
|
|
rm -r $dir |