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
2984d2dc
Commit
2984d2dc
authored
Nov 06, 2014
by
Robby Russell
Browse files
Merge pull request #2168 from riyad/modernize-virtualenv
Modernize the virtualenv plugin
parents
ed011228
d608fbfc
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/virtualenv/virtualenv.plugin.zsh
View file @
2984d2dc
function
virtualenv_prompt_info
(){
function
virtualenv_prompt_info
(){
if
[[
-n
$VIRTUAL_ENV
]]
;
then
[[
-n
${
VIRTUAL_ENV
}
]]
||
return
printf
"%s[%s] "
"%{
${
fg
[yellow]
}
%}"
${${
VIRTUAL_ENV
}
:t
}
echo
"
${
ZSH_THEME_VIRTUALENV_PREFIX
:
=[
}${
VIRTUAL_ENV
:t
}${
ZSH_THEME_VIRTUALENV_SUFFIX
:
=]
}
"
fi
}
}
# 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