From b72664a362532e63836bbc7608b6d15d26a2087d Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Sun, 3 May 2015 04:23:07 +0200
Subject: [PATCH] Add root dotfiles.

---
 dotfiles_root/.bashrc | 13 +++++++++++++
 symlink_root.sh       |  7 +++++++
 2 files changed, 20 insertions(+)
 create mode 100644 dotfiles_root/.bashrc
 create mode 100755 symlink_root.sh

diff --git a/dotfiles_root/.bashrc b/dotfiles_root/.bashrc
new file mode 100644
index 0000000..27d5103
--- /dev/null
+++ b/dotfiles_root/.bashrc
@@ -0,0 +1,13 @@
+# plomlompom's bashrc for non-login shells (root)
+
+# Environment variables.
+export EDITOR=nano
+
+# Fancy colors for ls.
+alias ls="ls --color=auto"
+
+# Red prompt with time.
+PS1="\[\e[1;31m\][\\t \\u@\\h \\w]$\[\e[m\] "
+PS2="\[\e[1;31m\]>\[\e[m\] "
+PS3="\[\e[1;31m\]>\[\e[m\] "
+PS4="\[\e[1;31m\]+\[\e[m\] "
diff --git a/symlink_root.sh b/symlink_root.sh
new file mode 100755
index 0000000..09cff77
--- /dev/null
+++ b/symlink_root.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+dir=~/config/dotfiles_root
+cd ~
+for file in `ls $dir`; do
+    ln -fs $dir/$file ~/.$file
+done
-- 
2.30.2