diff options
author | Miles Bader <miles@gnu.org> | 1996-07-17 21:18:49 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-07-17 21:18:49 +0000 |
commit | f2f014995a4bbf710c6185969052c2e7e10a8b43 (patch) | |
tree | 706db125f27494a90d8a32f5492f7b85508d9f11 /config/root-.bashrc | |
parent | 66e9ca205732d9d35ac3b229608ed23e9bee91e5 (diff) |
Fixup test and source of user's .root_bashrc.
Diffstat (limited to 'config/root-.bashrc')
-rw-r--r-- | config/root-.bashrc | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/config/root-.bashrc b/config/root-.bashrc index 2871be79..3973e692 100644 --- a/config/root-.bashrc +++ b/config/root-.bashrc @@ -1,12 +1,18 @@ # Execute the user's rootrc file if it exists instead of this one. -if [ $USER && $USER != root ]; then - . ~$USER/.root_bashrc +case "$USER" in + "" | root) + UHOME="";; + *) + UHOME="`eval echo ~$USER`";; +esac + +if [ "$UHOME" -a -r "$UHOME/.root_bashrc" ]; then + . "$UHOME/.root_bashrc" else -# define some handy aliases + # define some handy aliases alias j jobs -l alias c clear alias z suspend alias d dirs fi -
\ No newline at end of file |