Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1.05 KB

README.md

File metadata and controls

49 lines (32 loc) · 1.05 KB

zsh-auto-venv

Automatically activate venv when enter the project folder

Installation

  1. Add the following to your .zshrc:

    antigen bundle ikhomutov/zsh-auto-venv
  2. Start a new terminal session.

  1. 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
  2. Add the plugin to the list of plugins for Oh My Zsh to load (inside ~/.zshrc):

    plugins=(
      ...
      zsh-auto-venv
    )
  3. Start a new terminal session.

Manual (Git Clone)

  1. Clone this repository somewhere on your machine.

    git clone https://github.com/ikhomutov/zsh-auto-venv ~/.zsh/zsh-auto-venv
  2. Add the following to your .zshrc:

    source ~/.zsh/zsh-auto-venv/zsh-auto-venv.zsh
  3. Start a new terminal session.