From 6081884b9f565b6c5e251ecfa27f4362a9790d99 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Wed, 6 Feb 2013 13:09:05 +0100 Subject: zsh: Make venv_activate a local variable --- .zsh/functions/venv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-54-g00ecf