From: Frank Brehm Date: Tue, 10 Apr 2012 07:43:59 +0000 (+0200) Subject: Small changes on bash/bashrc X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=e3acd59fee20d3bf471fed8d11bcc694036efa36;p=config%2Fuhu1%2Fetc.git Small changes on bash/bashrc --- diff --git a/bash/bashrc b/bash/bashrc index 23364f2..b0904ff 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -91,9 +91,21 @@ if [ -d $HOME/bin ] ; then export PATH fi -if [ -d $HOME/lib ] ; then - PERL5LIB=$HOME/lib - export PERL5LIB +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