configs/roles/config/files/.config/fish/functions/activate.fish
2025-03-05 08:10:17 +01:00

14 lines
283 B
Fish

# Activate local Python venv
function activate
# Set path to venv activation script
set -f target "./.venv/bin/activate.fish"
# create venv if it doesn't exist
if not test -e $target
python -m venv ./.venv
end
# activate venv
source $target
end