iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
check for killing ourself
[distro-setup]
/
.bashrc
diff --git
a/.bashrc
b/.bashrc
index 7db792c3448da92d3e929ea4e04c76c513bd2637..d0c4b02f6bff6fbbbdc4c647a5ecbbea8812416a 100644
(file)
--- 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