From 21e0a5d073e164c1737395d80128f963c3361d9d Mon Sep 17 00:00:00 2001 From: fbrehm Date: Mon, 2 Apr 2012 09:57:07 +0200 Subject: [PATCH] saving uncommitted changes in /etc prior to emerge run --- bash/bashrc | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/bash/bashrc b/bash/bashrc index 753ce3a..12944a6 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -82,20 +82,35 @@ fi unset use_color safe_term match_lhs if [ -d /usr/scripts ] ; then - PATH=/usr/scripts:$PATH - export PATH + export PATH="/usr/scripts:${PATH}" fi -if [ -d $HOME/bin ] ; then - PATH=$PATH:$HOME/bin - export PATH +if [ -d "${HOME}/bin" ] ; then + export PATH="${PATH}:${HOME}/bin" fi -if [ -d $HOME/lib ] ; then - PERL5LIB=$HOME/lib - export PERL5LIB +#if [ -d $HOME/lib ] ; then +# PERL5LIB=$HOME/lib +# export PERL5LIB +#fi +if [ -d "$HOME/lib" ] ; then + if [ -d "$HOME/lib/perl" ] ; then + if [ -z "${PERL5LIB}" ] ; then + export PERL5LIB="$HOME/lib/perl" + else + export PERL5LIB="$HOME/lib/perl:${PERL5LIB}" + fi + fi + if [ -d "$HOME/lib/python" ] ; then + if [ -z "${PYTHONPATH}" ] ; then + export PYTHONPATH="$HOME/lib/python" + else + export PYTHONPATH="$HOME/lib/python:${PYTHONPATH}" + fi + fi fi + #if [[ ${EUID} == 0 ]] ; then # alias ll="ls -lA" #else -- 2.39.5