summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/root-.bash_login5
-rw-r--r--config/root-.bashrc12
-rw-r--r--config/root-.profile7
3 files changed, 24 insertions, 0 deletions
diff --git a/config/root-.bash_login b/config/root-.bash_login
new file mode 100644
index 00000000..efc6a7da
--- /dev/null
+++ b/config/root-.bash_login
@@ -0,0 +1,5 @@
+export PATH=/sbin:/bin:/local/bin
+
+. ~/.bashrc
+. ~/.profile
+
diff --git a/config/root-.bashrc b/config/root-.bashrc
new file mode 100644
index 00000000..2871be79
--- /dev/null
+++ b/config/root-.bashrc
@@ -0,0 +1,12 @@
+# Execute the user's rootrc file if it exists instead of this one.
+
+if [ $USER && $USER != root ]; then
+ . ~$USER/.root_bashrc
+else
+# define some handy aliases
+ alias j jobs -l
+ alias c clear
+ alias z suspend
+ alias d dirs
+fi
+ \ No newline at end of file
diff --git a/config/root-.profile b/config/root-.profile
new file mode 100644
index 00000000..5bfd9833
--- /dev/null
+++ b/config/root-.profile
@@ -0,0 +1,7 @@
+# Execute the user's .root_profile file if it exists rather than this one.
+
+if [ $USER && $USER != root ]; then
+ . ~USER/.root_profile
+else
+ export PATH=/sbin:/bin:/local/bin
+fi