From f2f014995a4bbf710c6185969052c2e7e10a8b43 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Wed, 17 Jul 1996 21:18:49 +0000 Subject: Fixup test and source of user's .root_bashrc. --- config/root-.bashrc | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'config') 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 -- cgit v1.2.3