diff --git a/tag-bash/bash/aliases b/tag-bash/bash/aliases index 71bee06..4fb3119 100644 --- a/tag-bash/bash/aliases +++ b/tag-bash/bash/aliases @@ -18,7 +18,12 @@ case $OSTYPE in esac # # Activate/deactivate Python virtual environment -alias ae='deactivate &> /dev/null; source ./venv/bin/activate' +activate_venv() { + local venv_name="${1:-venv}" + deactivate &>/dev/null + source ./${venv_name}/bin/activate +} +alias ae='activate_venv' alias de='deactivate' alias ddu='du --max-depth=1 -h' diff --git a/tag-zsh/zsh/aliases b/tag-zsh/zsh/aliases index fa97171..75a98d7 100644 --- a/tag-zsh/zsh/aliases +++ b/tag-zsh/zsh/aliases @@ -18,7 +18,12 @@ case $OSTYPE in esac # Activate/deactivate Python virtual environment -alias ae='deactivate &> /dev/null; source ./venv/bin/activate' +activate_venv() { + local venv_name="${1:-venv}" + deactivate &>/dev/null + source ./${venv_name}/bin/activate +} +alias ae='activate_venv' alias de='deactivate' alias ddu='du --max-depth=1 -h'