1. 12 Jun, 2021 1 commit
    • Dom Sekotill's avatar
      fix(virtualenvwrapper): several changes for checking git directory, including fixes (#5663) · 94ea7b45
      Dom Sekotill authored
      
      
      * Test only for the presence of a .git directory in virtualenvwrapper
      
      Instead of using both $(git rev-parse --show-toplevel) and a check for
      a .git directory, use just the latter. As well as being redundant
      the former does not work quite so well when using multiple worktrees;
      each worktree will be treated as a separate project.
      
      * Unset ENV_NAME & deactivate if no virtualenv found
      
      This addresses #4603 without breaking current behaviour (where current
      behaviour is correct).
      
      When changing directories, if there is no environment matching
      ENV_NAME, ENV_NAME is emptied and deactivate called if there is a
      current environment active (based on CD_VIRTUAL_ENV).
      
      * Use path comparison not string comparison for paths
      
      This will solve part of issue #4255 where WORKON_HOME is defined with a
      trailing slash or not normalised in some way, as well as instances
      where symlinks are used, and any other instances where constructed
      paths don't exactly match even though they go to the same file.
      Co-authored-by: default avatarRobby Russell <robby@planetargon.com>
      94ea7b45
  2. 26 May, 2020 1 commit
  3. 22 Mar, 2020 1 commit
  4. 07 Feb, 2020 1 commit
  5. 19 Jan, 2020 1 commit
  6. 21 Dec, 2019 1 commit
  7. 19 Nov, 2019 1 commit
  8. 06 Jun, 2018 1 commit
    • Marc Cornellà's avatar
      virtualenvwrapper: set $WORKON_HOME if undefined · f461d21d
      Marc Cornellà authored
      This uses the default that virtualenvwrapper.sh would set if it was called. If the user
      changes its value after the plugin is loaded, the plugin will work all the same.
      
      Fixes #6882
      Closes #6870
      Closes #6883
      f461d21d
  9. 26 May, 2018 1 commit
  10. 13 May, 2018 1 commit
  11. 07 Aug, 2015 1 commit
  12. 03 Jul, 2015 1 commit
  13. 29 Jun, 2015 1 commit
  14. 13 Jun, 2015 1 commit
  15. 21 May, 2015 1 commit
  16. 10 Feb, 2015 3 commits
  17. 07 Jan, 2015 1 commit
    • Jyrki Pulliainen's avatar
      virtualenvwrapper: Deactivate only if in virtualenv · 833e6f59
      Jyrki Pulliainen authored
      If user manually deactivates the virtualenv when using this mode, zsh
      will produce following error:
      
          deactivate:12: command not found: virtualenv_deactivate
      
      To avoid this, check that the VIRTUAL_ENV flag is set before trying to
      automatically deactivate the virtual environment.
      
      Fixes #2185
      833e6f59
  18. 28 Nov, 2014 1 commit
    • benjaoming's avatar
      Throw an error message when $WORKON_HOME is not set · 4b05e548
      benjaoming authored
      Took me a while to figure this one out, and I have a default installation of virtualenvwrapper -- this is a soft fix, just put an error message. But perhaps the fix should be to use the default value `~/.virtualenvs`.
      4b05e548
  19. 17 Mar, 2014 1 commit
  20. 16 Oct, 2013 1 commit
  21. 08 Jun, 2013 1 commit
    • Andrew Grangaard's avatar
      virtualenvwrapper plugin cleanup · e73dd2cd
      Andrew Grangaard authored
      * removes cd override by using chpwd_functions
      * removes subshell call to which by using $+commands array and
        c param expansion to find in PATH
      * zsh love!
      e73dd2cd
  22. 21 May, 2013 1 commit
  23. 02 Dec, 2012 1 commit
    • J. Randall Hunt's avatar
      use lazy load for virtualenvwrapper · b9d5a390
      J. Randall Hunt authored
      Using lazy loading for virtualenvwrapper gives a mariginal speed
      improvement and doesn't stop workon_cd from working. It has the
      undesired effect of forcing you to call certain virtualenv commands
      twice before they work (only once per shell instantiation).
      b9d5a390
  24. 25 Aug, 2012 2 commits
  25. 25 Jun, 2012 1 commit
  26. 18 Jun, 2012 1 commit
  27. 09 Jun, 2012 1 commit