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
Oh My Zsh
Commits
6e567841
Unverified
Commit
6e567841
authored
Mar 28, 2021
by
Marc Cornellà
Browse files
fix(virtualenv): allow empty prefix/suffix in prompt function (#9763)
Fixes #9763
parent
d8b3e115
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/virtualenv/virtualenv.plugin.zsh
View file @
6e567841
function
virtualenv_prompt_info
(){
function
virtualenv_prompt_info
(){
[[
-n
${
VIRTUAL_ENV
}
]]
||
return
[[
-n
${
VIRTUAL_ENV
}
]]
||
return
echo
"
${
ZSH_THEME_VIRTUALENV_PREFIX
:
=[
}${
VIRTUAL_ENV
:t
}${
ZSH_THEME_VIRTUALENV_SUFFIX
:
=]
}
"
echo
"
${
ZSH_THEME_VIRTUALENV_PREFIX
=[
}${
VIRTUAL_ENV
:t
}${
ZSH_THEME_VIRTUALENV_SUFFIX
=]
}
"
}
}
# disables prompt mangling in virtual_env/bin/activate
# disables prompt mangling in virtual_env/bin/activate
...
...
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