1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-25 13:51:57 +00:00
Commit graph

4 commits

Author SHA1 Message Date
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