From e3acd59fee20d3bf471fed8d11bcc694036efa36 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Tue, 10 Apr 2012 09:43:59 +0200 Subject: [PATCH] Small changes on bash/bashrc --- bash/bashrc | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) 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 -- 2.39.5