From 7118d6d63e176aab3ded946515280a30a4b39ec2 Mon Sep 17 00:00:00 2001 From: Joseph Groocock Date: Thu, 31 Mar 2016 18:35:15 +0100 Subject: [PATCH] Link some dotfiles to /root too --- scripts/init-dotfiles.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/scripts/init-dotfiles.sh b/scripts/init-dotfiles.sh index 7634af9..d4fa4c4 100755 --- a/scripts/init-dotfiles.sh +++ b/scripts/init-dotfiles.sh @@ -8,6 +8,7 @@ files=`ls -A $DOTFILES | awk '/^\..*/ && !/\.config$/ && !/\.git$/'` homepath=`echo $DOTFILES | sed "s|$HOME/||g"` conffiles=`ls -A "$DOTFILES/.config"` confpath=`echo $homepath | sed "s|.config/||g"` +userhome=$HOME for file in $files; do ln -sfv $homepath/$file . @@ -20,3 +21,17 @@ for file in $conffiles; do ln -sfv $confpath/.config/$file . done +sudo -s << EOF +cd ~ +echo -n "cd " +pwd + +ln -sfv $userhome/.vimrc . +ln -sfv $userhome/.vim/ . +ln -sfv $userhome/.gtkrc-2.0 . + +mkdir -p .config && cd .config/ +echo -n "cd " +pwd +ln -sfv $userhome/.config/gtk-3.0 . +EOF