keithly / viper-env

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Viper Env Z-Shell plugin

Automatically activates and deactivates a Python virtualenv upon cd in and out.

Inspiration

Based on blueray's answer, I decided to go one step further and implement it as a Z-Shell plugin.

Usage

Alt text

Installation

Oh My Zsh

Git clone this repository to the Oh My Zsh custom plugins folder.

Add plugin to plugins directive in ~/.zshrc

plugins=(
  # put local oh-my-zsh plugins here
  viper-env
)

source $HOME/.oh-my-zsh/oh-my-zsh.sh

Antigen

It is recommended to use a .antigenrc file. Then add the following to it:

antigen bundle DanielAtKrypton/viper-env

# Apply changes
antigen apply

Make sure in your .zshrc Antigen is loading the .antigenrc file as follows:

antigen init ~/.antigenrc

About


Languages

Language:Shell 100.0%