From 42d12df4193b59d14db75a0c1f039deef3dce0b6 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 30 Jan 2009 16:47:18 -0500 Subject: [PATCH] smarter PATH handling --- .bashrc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 -- 2.39.2