summaryrefslogtreecommitdiff
path: root/plugins/virtualenvwrapper
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2015-08-07 22:45:46 +0200
committerMarc Cornellà <marc.cornella@live.com>2015-08-07 22:45:46 +0200
commitccb0ae57207b1701c3187faf49c417fb0a902f58 (patch)
tree8ad55ab3368976f730f3cd2324d047b3482e7be4 /plugins/virtualenvwrapper
parent3d5b3430fd9da12f6e33f534e487fe9b18928ac7 (diff)
downloadzsh-ccb0ae57207b1701c3187faf49c417fb0a902f58.tar.gz
zsh-ccb0ae57207b1701c3187faf49c417fb0a902f58.tar.bz2
zsh-ccb0ae57207b1701c3187faf49c417fb0a902f58.zip
Add quotes to support folders with whitespace
Diffstat (limited to 'plugins/virtualenvwrapper')
-rw-r--r--plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh b/plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh
index c40ca86ac..6cd30732e 100644
--- a/plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh
+++ b/plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh
@@ -38,7 +38,7 @@ if [[ ! $DISABLE_VENV_CD -eq 1 ]]; then
local WORKON_CWD=1
# Check if this is a Git repo
local GIT_REPO_ROOT=""
- local GIT_TOPLEVEL=$(git rev-parse --show-toplevel 2> /dev/null)
+ local GIT_TOPLEVEL="$(git rev-parse --show-toplevel 2> /dev/null)"
if [[ $? == 0 ]]; then
GIT_REPO_ROOT="$GIT_TOPLEVEL"
fi
@@ -53,7 +53,7 @@ if [[ ! $DISABLE_VENV_CD -eq 1 ]]; then
fi
# Check for virtualenv name override
if [[ -f "$PROJECT_ROOT/.venv" ]]; then
- ENV_NAME=`cat "$PROJECT_ROOT/.venv"`
+ ENV_NAME="$(cat "$PROJECT_ROOT/.venv")"
elif [[ -f "$PROJECT_ROOT/.venv/bin/activate" ]];then
ENV_NAME="$PROJECT_ROOT/.venv"
elif [[ "$PROJECT_ROOT" != "." ]]; then