From 4b163f5565269faadc64995a3a903fa28c65f7b3 Mon Sep 17 00:00:00 2001 From: patrick brisbin Date: Mon, 9 Dec 2013 15:47:42 -0500 Subject: 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). --- share/rcm.sh.in | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'share/rcm.sh.in') 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 -- cgit v1.2.3