Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
ccb0ae57
Commit
ccb0ae57
authored
Aug 07, 2015
by
Marc Cornellà
Browse files
Add quotes to support folders with whitespace
parent
3d5b3430
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh
View file @
ccb0ae57
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment