From 2b3809a0650ccdba2a4f1899692f30b3c11e58f4 Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Wed, 28 Mar 2012 23:44:36 -0500 Subject: [PATCH] .bashrc: put /opt/csw/* on PATH if exists (OpenCSW Solaris packages) --- .bashrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index a3dbb15..07ad840 100644 --- a/.bashrc +++ b/.bashrc @@ -74,10 +74,14 @@ umask 0022 PATH="$PATH:/usr/local/sbin:/usr/sbin:/sbin" PATH="/usr/local/bin:$PATH" -# put ~/bin on PATH if you have it +# 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" + # ---------------------------------------------------------------------- # ENVIRONMENT CONFIGURATION # ---------------------------------------------------------------------- -- 2.47.1