Commit graph

3 commits

Author SHA1 Message Date
Richard Maynard
cd42812c9b fix virtualenv's with virtualenv plugin / prompt display
Virtual Env modifies the prompt in such a way that when used with
agnoster the virtualenv will be displayed twice.

Using the virtualenv oh-my-zsh plugin disables this behavior (simply
because it disables the virtual env prompt mangling) however when using
the plugin it would be nice to keep the single prompt display as
expected, and still allow for the function to provide prompt info which
other themes may use.
2013-11-06 13:06:22 -06: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