From f87f4e4f7095dda71fb54570064d1f5e3571f97f Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 13 Jan 2013 13:30:28 -0500 Subject: [PATCH] .bash_profile: Include ~/.local/bin in PATH initialization And add the sbins regardless of whether ~/bin exists. --- src/.bash_profile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/.bash_profile b/src/.bash_profile index b946370..9e5da4b 100644 --- a/src/.bash_profile +++ b/src/.bash_profile @@ -1,8 +1,16 @@ # This file is sourced by bash for login shells. -# set PATH so it includes user's private bin if it exists -if [ -d ~/bin ]; then - PATH=~/bin:"${PATH}":/usr/sbin:/sbin +# include system binaries +PATH="${PATH}":/usr/sbin:/sbin + +# set PATH so it includes user's local bin if it exists +if [ -d "${HOME}"/.local/bin ]; then + PATH="${HOME}"/.local/bin:"${PATH}" +fi + +# set PATH so it includes user's personal bin if it exists +if [ -d "${HOME}"/bin ]; then + PATH="${HOME}"/bin:"${PATH}" fi # The following line runs your .bashrc and is recommended by the bash -- 2.26.2