Bash stuff

This commit is contained in:
2025-12-03 21:25:16 -05:00
parent ec17337d63
commit e58f4341f8
4 changed files with 56 additions and 0 deletions
+20
View File
@@ -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
}