From: Christian Heller Date: Sun, 3 May 2015 02:23:07 +0000 (+0200) Subject: Add root dotfiles. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7B%20web_path%20%7D%7D/%7B%7Btodo.comment%7D%7D?a=commitdiff_plain;h=b72664a362532e63836bbc7608b6d15d26a2087d;p=config Add root dotfiles. --- 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