From: Mike Frysinger Date: Fri, 30 Jan 2009 21:47:18 +0000 (-0500) Subject: smarter PATH handling X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=42d12df4193b59d14db75a0c1f039deef3dce0b6;p=home.git smarter PATH handling --- diff --git a/.bashrc b/.bashrc index e97e747..3433e4d 100644 --- a/.bashrc +++ b/.bashrc @@ -3,9 +3,13 @@ umask 0022 for sh in ~/.profile.d/*.sh ; do . "$sh" done +unset sh -export PATH=/usr/lib/ccache/bin:/sbin:/usr/sbin:${PATH}:/usr/games/bin -[ -e ~/.bin ] && export PATH=${PATH}:~/.bin +export PATH=/sbin:/usr/sbin:${PATH}:/usr/games/bin +for p in /usr/lib*/ccache /usr/lib*/ccache/*/ ~/.bin/ ; do + [ -d "${p}" ] && export PATH=${p}:$PATH +done +unset p export ECHANGELOG_USER="Mike Frysinger " export GCC_BOUNDS_OPTS=-no-message