From: fbrehm Date: Mon, 2 Apr 2012 07:57:07 +0000 (+0200) Subject: saving uncommitted changes in /etc prior to emerge run X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=21e0a5d073e164c1737395d80128f963c3361d9d;p=config%2Fsamara%2Fetc.git saving uncommitted changes in /etc prior to emerge run --- 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