From: David Kerkeslager Date: Wed, 6 Jul 2016 02:36:41 +0000 (-0400) Subject: Prevent pip from running if there isn't a virtualenv X-Git-Url: https://code.kerkeslager.com/?a=commitdiff_plain;h=342890eff5844f8cfb8eea6d07cbc912c4992a68;p=dotfiles Prevent pip from running if there isn't a virtualenv --- diff --git a/.bashrc b/.bashrc index 80aa76e..a8ebce5 100644 --- a/.bashrc +++ b/.bashrc @@ -117,3 +117,5 @@ set -o vi # Call on_prompt() every time the command prompt executes PROMPT_COMMAND=on_prompt +# pip should only run if there is a virtualenv currently activated +export PIP_REQUIRE_VIRTUALENV=true