From 4a48ace97dd581f49ee00a0820001854aee1ff0e Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Fri, 22 Nov 2024 21:10:33 +0500 Subject: zsh: Allow pip only in virtualenv --- files/.zsh/rc/S20_environment | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/.zsh/rc/S20_environment b/files/.zsh/rc/S20_environment index 5cd7594..acd8dd8 100644 --- a/files/.zsh/rc/S20_environment +++ b/files/.zsh/rc/S20_environment @@ -51,4 +51,7 @@ export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND" # Better `set -x` messages export PS4='+ ${BASH_SOURCE:-}:${FUNCNAME[0]:-}:L${LINENO:-}: ' +# Allow pip to only run in a virtual environment; exit with an error otherwise. +export PIP_REQUIRE_VIRTUALENV=true + # vim: et ft=zsh : -- cgit v1.2.3