From: W. Trevor King Date: Sun, 13 Jan 2013 18:30:28 +0000 (-0500) Subject: .bash_profile: Include ~/.local/bin in PATH initialization X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f87f4e4f7095dda71fb54570064d1f5e3571f97f;p=dotfiles-public.git .bash_profile: Include ~/.local/bin in PATH initialization And add the sbins regardless of whether ~/bin exists. --- 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