diff --git a/.zsh/functions/venv b/.zsh/functions/venv index 49564ac..03ec83d 100644 --- a/.zsh/functions/venv +++ b/.zsh/functions/venv @@ -1,6 +1,6 @@ # -*- mode: sh; -*- if [ "${#}" -eq 1 ]; then - venv_activate="$HOME/.virtualenv/$1/bin/activate" + local venv_activate="$HOME/.virtualenv/$1/bin/activate" if [ -r "$venv_activate" ]; then source $venv_activate