This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# quick create venv | |
function venv | |
set current_directory (basename $PWD) | |
set venv_dir ."$current_directory"_venv | |
# Check if .$current_directory/bin/activate.fish exists | |
if test -f $venv_dir/bin/activate.fish | |
echo "Found existing virtual environment. Activating..." | |
source $venv_dir/bin/activate.fish | |
else |