From 342890eff5844f8cfb8eea6d07cbc912c4992a68 Mon Sep 17 00:00:00 2001 From: David Kerkeslager Date: Tue, 5 Jul 2016 22:36:41 -0400 Subject: [PATCH] Prevent pip from running if there isn't a virtualenv --- .bashrc | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.20.1