Bash stuff
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
function cv() {
|
||||
mkdir -p ~/python-venv
|
||||
python -m venv "~/python-venv/$1"
|
||||
source "~/python-venv/$1/bin/activate"
|
||||
}
|
||||
|
||||
function av() {
|
||||
if [ -d "~/python-venv/$1" ]; then
|
||||
source "~/python-venv/$1/bin/activate"
|
||||
else
|
||||
echo "Error: Venv does not exist"
|
||||
fi
|
||||
}
|
||||
|
||||
function mkcd() {
|
||||
mkdir -p $1
|
||||
cd $1
|
||||
}
|
||||
Reference in New Issue
Block a user