zsh: Make venv_activate a local variable
This commit is contained in:
parent
c3aa5bb8b4
commit
6081884b9f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue