commit 4eb407efff2ac5e4bff72a7ff1396130fe0e8132
parent 26a794a35b1eacd763bd0a5e59152d89e02e15c7
Author: Chris Bracken <chris@bracken.jp>
Date: Mon, 9 Mar 2020 17:45:34 -0700
Add local PYTHONPATH, if it exists
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/.zshenv b/.zshenv
@@ -18,6 +18,11 @@ export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
+# If a local python3 directory exists, add PYTHONPATH.
+if [[ -d "$HOME/.local/lib/python3" ]]; then
+ export PYTHONPATH="$HOME/.local/lib/python3:$PYTHONPATH"
+fi
+
# If a local perl5 directory exists, add PERL5LIB.
if [[ -d "$HOME/.perl5/lib/perl5" ]]; then
export PERL5LIB="$HOME/.perl5/lib/perl5:$PERL5LIB"