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
d608fbfc
Commit
d608fbfc
authored
Oct 15, 2013
by
Riyad Preukschas
Browse files
Make the virtualenv plugin themable
parent
c79e5a97
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/virtualenv/virtualenv.plugin.zsh
View file @
d608fbfc
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