Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
d0b690b5
Commit
d0b690b5
authored
9 years ago
by
Tommy Wang
Committed by
ncanceill
9 years ago
Browse files
Options
Download
Email Patches
Plain Diff
use local options to set no_equals before sourcing bash completion script
parent
e55d84f7
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh
+11
-3
plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh
with
11 additions
and
3 deletions
+11
-3
plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh
View file @
d0b690b5
virtualenvwrapper
=
'virtualenvwrapper.sh'
if
((
$+
commands[
$virtualenvwrapper
]
))
;
then
source
${${
virtualenvwrapper
}
:c
}
function
{
setopt local_options
unsetopt equals
source
${${
virtualenvwrapper
}
:c
}
}
elif
[[
-f
"/etc/bash_completion.d/virtualenvwrapper"
]]
;
then
virtualenvwrapper
=
"/etc/bash_completion.d/virtualenvwrapper"
source
"/etc/bash_completion.d/virtualenvwrapper"
function
{
setopt local_options
unsetopt equals
virtualenvwrapper
=
"/etc/bash_completion.d/virtualenvwrapper"
source
"/etc/bash_completion.d/virtualenvwrapper"
}
else
print
"zsh virtualenvwrapper plugin: Cannot find
${
virtualenvwrapper
}
.
\n
"
\
"Please install with
\`
pip install virtualenvwrapper
\`
"
>
&2
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help