From e4973cb91e053cf666c1f66168f0a586a659f84a Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Wed, 19 Dec 2012 23:51:40 -0600 Subject: [PATCH] .bashrc: put ~/sbin in $PATH if it exists --- .bashrc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.bashrc b/.bashrc index 5958d8d..3ba2059 100644 --- a/.bashrc +++ b/.bashrc @@ -70,17 +70,21 @@ umask 0022 # PATH # ---------------------------------------------------------------------- -# we want the various sbins on the path along with /usr/local/bin +# we want the various sbin's on the path along with /usr/local/bin PATH="$PATH:/usr/local/sbin:/usr/sbin:/sbin" PATH="/usr/local/bin:$PATH" +# put /opt/csw/* on PATH if exists (OpenCSW Solaris packages) +test -d "/opt/csw" && + PATH="/opt/csw/sbin:/opt/csw/bin:$PATH" + # put ~/bin on PATH if exists test -d "$HOME/bin" && PATH="$HOME/bin:$PATH" -# put /opt/csw/* on PATH if exists (OpenCSW Solaris packages) -test -d "/opt/csw" && - PATH="/opt/csw/sbin:/opt/csw/bin:$PATH" +# put ~/sbin on PATH if exists +test -d "$HOME/sbin" && + PATH="$HOME/sbin:$PATH" # ---------------------------------------------------------------------- # ENVIRONMENT CONFIGURATION -- 2.45.2