X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=.bashrc;h=d0c4b02f6bff6fbbbdc4c647a5ecbbea8812416a;hb=32fb94de4f6b8e30ee53486f87721e73ed4eff50;hp=7db792c3448da92d3e929ea4e04c76c513bd2637;hpb=573c12ec8d999a5db4b03277f6ada7f78a46683f;p=distro-setup diff --git a/.bashrc b/.bashrc index 7db792c..d0c4b02 100644 --- a/.bashrc +++ b/.bashrc @@ -53,6 +53,12 @@ if [[ $SSH_CONNECTION ]] \ && [[ ! $BASH_LOGIN_SHELL == true ]]; then return else - source /etc/profile - source ~/brc + if [[ -r /etc/profile ]]; then + source /etc/profile + fi + _x=$(readlink -f $BASH_SOURCE) + _x=${_x%/*}/brc + if [[ -r $_x ]]; then + source $_x + fi fi