X-Git-Url: https://src.twobees.de/?a=blobdiff_plain;f=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2Fvirtualenvwrapper%2FREADME.md;fp=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2Fvirtualenvwrapper%2FREADME.md;h=0000000000000000000000000000000000000000;hb=1a8e170bbe5c6641a26ab1ce2e6ce6c5c1faa4cd;hp=63eb58541d236b8da3cdf6355ec635430427b78f;hpb=475ba35502579302593f4735c853c49ef1845dcb;p=dotfiles.git diff --git a/stow/oh-my-zsh/.oh-my-zsh/plugins/virtualenvwrapper/README.md b/stow/oh-my-zsh/.oh-my-zsh/plugins/virtualenvwrapper/README.md deleted file mode 100644 index 63eb585..0000000 --- a/stow/oh-my-zsh/.oh-my-zsh/plugins/virtualenvwrapper/README.md +++ /dev/null @@ -1,38 +0,0 @@ -# Virtualenvwrapper plugin - -This plugin loads Python's [virtualenvwrapper](https://virtualenvwrapper.readthedocs.io/en/latest/) shell tools. - -To use it, add `virtualenvwrapper` to the plugins array in your zshrc file: - -```zsh -plugins=(... virtualenvwrapper) -``` - -## Usage - -The plugin allows to automatically activate virtualenvs on cd into git repositories with a matching name: - -``` -➜ github $ cd ansible -(ansible) ➜ ansible git:(devel) $ cd docs -(ansible) ➜ docs git:(devel) $ cd .. -(ansible) ➜ ansible git:(devel) $ cd .. -➜ github $ -``` - -We can override this by having a `.venv` file in the directory containing a differently named virtualenv: - -``` -➜ github $ cat ansible/.venv -myvirtualenv -➜ github $ cd ansible -(myvirtualenv) ➜ ansible git:(devel) $ cd .. -➜ github $ -``` - -We can disable this behaviour by setting `DISABLE_VENV_CD=1` before Oh My Zsh is sourced: -```zsh -DISABLE_VENV_CD=1 -plugins=(... virtualenvwrapper) -source $ZSH/oh-my-zsh.sh -```