Automatically activate venv when enter the project folder
-
Add the following to your
.zshrc
:antigen bundle ikhomutov/zsh-auto-venv
-
Start a new terminal session.
-
Clone this repository into
$ZSH_CUSTOM/plugins
(by default~/.oh-my-zsh/custom/plugins
)git clone https://github.com/ikhomutov/zsh-auto-venv ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-auto-venv
-
Add the plugin to the list of plugins for Oh My Zsh to load (inside
~/.zshrc
):plugins=( ... zsh-auto-venv )
-
Start a new terminal session.
-
Clone this repository somewhere on your machine.
git clone https://github.com/ikhomutov/zsh-auto-venv ~/.zsh/zsh-auto-venv
-
Add the following to your
.zshrc
:source ~/.zsh/zsh-auto-venv/zsh-auto-venv.zsh
-
Start a new terminal session.