Prevent pip from running if there isn't a virtualenv
authorDavid Kerkeslager <kerkeslager@gmail.com>
Wed, 6 Jul 2016 02:36:41 +0000 (22:36 -0400)
committerGitHub <noreply@github.com>
Wed, 6 Jul 2016 02:36:41 +0000 (22:36 -0400)
.bashrc

diff --git a/.bashrc b/.bashrc
index 80aa76e..a8ebce5 100644 (file)
--- 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