Commit graph

5 commits

Author SHA1 Message Date
Marc Cornellà 3e9fe6e772
fix(virtualenv): quote % in virtualenv_prompt_info 2022-01-03 13:50:51 +01:00
Marc Cornellà 6e56784179
fix(virtualenv): allow empty prefix/suffix in prompt function (#9763)
Fixes #9763
2021-03-28 15:01:39 +02:00
Riyad Preukschas d608fbfc7f Make the virtualenv plugin themable 2013-10-15 14:34:03 +02:00
Andrew Grangaard 894e1caa0a virtualenv cleanup: replaces subshell with prompt expansion.
* :t parameter expansion returns the last portion of the path,
  equivalent to basename. I <3 zsh.
* adds comments for the VIRTUAL_ENV_DISABLE_PROMPT,
  used by virtual_env activate

See also:
  http://zsh.sourceforge.net/Doc/Release/Expansion.html#Parameter-Expansion
2013-06-08 11:36:33 -07:00
Justin Caratzas 0b2da8f11b Add very basic virtualenv plugin
checks for $VIRTUAL_ENV and provides to basename in a function for the prompt.
2012-07-11 23:40:12 -04:00