zsh: Make venv_activate a local variable

This commit is contained in:
Tom Willemsen 2013-02-06 13:09:05 +01:00
parent c3aa5bb8b4
commit 6081884b9f

View file

@ -1,6 +1,6 @@
# -*- mode: sh; -*- # -*- mode: sh; -*-
if [ "${#}" -eq 1 ]; then if [ "${#}" -eq 1 ]; then
venv_activate="$HOME/.virtualenv/$1/bin/activate" local venv_activate="$HOME/.virtualenv/$1/bin/activate"
if [ -r "$venv_activate" ]; then if [ -r "$venv_activate" ]; then
source $venv_activate source $venv_activate