(fix): av and cv functions
This commit is contained in:
1 parent
8504b93990
commit
1755c82a96
1 file changed
+5
-5
@@ -1,14 +1,14 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
function cv() {
|
function cv() {
|
||||||
mkdir -p ~/python-venv
|
mkdir -p $HOME/python-venv
|
||||||
python -m venv "~/python-venv/$1"
|
python -m venv "$HOME/python-venv/$1"
|
||||||
source "~/python-venv/$1/bin/activate"
|
source "$HOME/python-venv/$1/bin/activate"
|
||||||
}
|
}
|
||||||
|
|
||||||
function av() {
|
function av() {
|
||||||
if [ -d "~/python-venv/$1" ]; then
|
if [ -d "$HOME/python-venv/$1" ]; then
|
||||||
source "~/python-venv/$1/bin/activate"
|
source "$HOME/python-venv/$1/bin/activate"
|
||||||
else
|
else
|
||||||
echo "Error: Venv does not exist"
|
echo "Error: Venv does not exist"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in new issue
Block a user