From 6c3d8735b58ae6615a9d7aa55463b752a33b777f Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Sat, 30 Mar 2024 11:35:30 -0500 Subject: [PATCH] .bashrc: Add python pip --user path after finalizing $PATH --- .bashrc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.bashrc b/.bashrc index 39214f3..c549c45 100644 --- a/.bashrc +++ b/.bashrc @@ -111,19 +111,19 @@ if [ -d "/native" ]; then manpath_end="$manpath_end:/native/usr/share/man" fi -# python pip --user +PATH="$path_start:$PATH:$path_end" +MANPATH="$manpath_start:$MANPATH:$manpath_end" +unset path_start path_end manpath_start manpath_end + +# python: pip --user for python in "python" "python2" "python3"; do if [ -n "$(type -P $python)" ]; then pybin="$($python -m site --user-base)/bin" - test -d "$pybin" && path_end="$path_end:$pybin" + test -d "$pybin" && PATH="$PATH:$pybin" fi done unset python pybin -PATH="$path_start:$PATH:$path_end" -MANPATH="$manpath_start:$MANPATH:$manpath_end" -unset path_start path_end manpath_start manpath_end - # --------------------------------------------------------------------------- # ENVIRONMENT CONFIGURATION # --------------------------------------------------------------------------- -- 2.45.2