Giter Site home page Giter Site logo

yapipenv.zsh's Introduction

yapipenv.zsh

I've written this plugin to fix issues that I've had with existing pipenv integration plugins.

Features

  • Activate a pipenv project's virtual environment, if pipenv itself recognises the directory. This means I don't have to check if a Pipfile is in the current directory, or the directories above it.
  • Activate the environment silently, without needing to start pipenv shell, which visibly enters the activation command.
  • Deactivate the virtual environment when you are outside the directory that it was activated in.
  • If you switch between directories that are part of different pipenv projects, this plugin will deactivate the original project, and activate the current one without needing to cd . repeatedly.
  • Enable pipenv's tab completions so you don't need to use another plugin.

Installation

zplug 'anonguy/yapipenv.zsh'

yapipenv.zsh's People

Contributors

jerbob avatar

Watchers

 avatar

yapipenv.zsh's Issues

Can't remove virtualenv

When using this plugin, if I ran pipenv --rm in the directory managed by pipenv, it would fail.

$ pipenv --rm
Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own for any project. You can set PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and create its own instead. You can set PIPENV_VERBOSITY=-1 to suppress this warning.
You are attempting to remove a virtualenv that Pipenv did not create. Aborting.
Aborted!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.