1
Fork 0
mirror of https://github.com/Steffo99/config-fish.git synced 2024-12-22 23:04:22 +00:00
config-fish/functions/revenv.fish
2022-01-05 18:25:06 +01:00

17 lines
337 B
Fish

function revenv
echo_progress "Removing previous venv..."
rm -rfi venv
echo
echo_progress "Creating a new venv..."
python -m venv venv
echo
echo_progress "Accessing the new venv..."
source venv/bin/activate.fish
echo
echo_progress "Installing "
echo_highlight "$argv"
pip install $argv
echo
echo_progress "Done!"
echo
end