Skip to content

This is a Zsh plugin that automatically activates a Python virtual environment when entering a directory that contains a `.venv` folder and deactivates it when leaving the directory.

License

Notifications You must be signed in to change notification settings

SangwoonYun/zsh-auto-venv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zsh-auto-venv Zsh Plugin

This is a Zsh plugin that automatically activates a Python virtual environment when entering a directory that contains a .venv folder and deactivates it when leaving the directory.

Installation

Oh My Zsh

  1. Clone the repository into the Oh My Zsh custom plugins folder:

    git clone https://github.com/SangwoonYun/zsh-auto-venv ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-auto-venv
    
  2. Add zsh-auto-venv to the list of plugins in your .zshrc:

    plugins=(... zsh-auto-venv)
  3. Source your .zshrc or restart your terminal session:

    source ~/.zshrc

Usage

The plugin will automatically activate and deactivate .venv when you move into and out of directories containing a .venv folder. There is no need for manual activation.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

This is a Zsh plugin that automatically activates a Python virtual environment when entering a directory that contains a `.venv` folder and deactivates it when leaving the directory.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages