diff --git a/bash/bashrc/rbashrc b/bash/bashrc/rbashrc index 3ebb797..3f07008 100644 --- a/bash/bashrc/rbashrc +++ b/bash/bashrc/rbashrc @@ -4,7 +4,11 @@ case $- in *) return;; esac -__SCRIPT=$( pwd )/$BASH_SOURCE +__SCRIPT=$BASH_SOURCE +echo $BASH_SOURCE | grep -q "^$( pwd )" +if [ $? -ne 0 ]; then + __SCRIPT=$( pwd )/$BASH_SOURCE +fi # Source global definitions if [ -f /etc/bashrc ]; then