home · contact · privacy
Add root dotfiles.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 3 May 2015 02:23:07 +0000 (04:23 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 3 May 2015 02:23:07 +0000 (04:23 +0200)
dotfiles_root/.bashrc [new file with mode: 0644]
symlink_root.sh [new file with mode: 0755]

diff --git a/dotfiles_root/.bashrc b/dotfiles_root/.bashrc
new file mode 100644 (file)
index 0000000..27d5103
--- /dev/null
@@ -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 (executable)
index 0000000..09cff77
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+dir=~/config/dotfiles_root
+cd ~
+for file in `ls $dir`; do
+    ln -fs $dir/$file ~/.$file
+done