added deactivate command, name can be better, fixes #11
All checks were successful
/ Lint Check Shellscripts (push) Successful in 12s
All checks were successful
/ Lint Check Shellscripts (push) Successful in 12s
This commit is contained in:
10
penv
10
penv
@@ -149,6 +149,16 @@ install() {
|
||||
return;
|
||||
fi
|
||||
. \$HOME/.envs/\$1/bin/activate
|
||||
echo Activated.
|
||||
echo Deactivate using \\\"deactivate\\\" or \\\"pdct\\\"
|
||||
}
|
||||
|
||||
pdct () {
|
||||
if [[ ! -n \"\$VIRTUAL_ENV\" ]]; then
|
||||
echo \"No environment active\"
|
||||
return;
|
||||
fi
|
||||
deactivate
|
||||
}
|
||||
" > "$HOME"/.envs/.penv.funcs
|
||||
add2RC bashrc
|
||||
|
||||
Reference in New Issue
Block a user