diff options
author | patrick brisbin <pbrisbin@gmail.com> | 2013-12-09 15:47:42 -0500 |
---|---|---|
committer | patrick brisbin <pbrisbin@gmail.com> | 2013-12-11 09:40:38 -0500 |
commit | 4b163f5565269faadc64995a3a903fa28c65f7b3 (patch) | |
tree | 3c14dcde5d88486c66f3c5491fbd512c55143e79 /share/rcm.sh.in | |
parent | 3cc63e020bcd6c9a684957d10cd754bc0a1e1dc6 (diff) |
Prefer RCRC environment variable over ~/.rcrc
* Centralize configuration loading in rcm.sh(.in)
* Check for readability, not just existence
Add RCRC notes to all manpages. Putting the environment variables in a
table lines them up more neatly and definitively, across all output
formats, and also follows the examples used by e.g. BSD ls(1).
Diffstat (limited to 'share/rcm.sh.in')
-rw-r--r-- | share/rcm.sh.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/share/rcm.sh.in b/share/rcm.sh.in index e01ec59..2af2418 100644 --- a/share/rcm.sh.in +++ b/share/rcm.sh.in @@ -116,3 +116,9 @@ run_hooks() { done fi } + +: ${RCRC:=$HOME/.rcrc} + +if [ -r "$RCRC" ]; then + . "$RCRC" +fi |