dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 1237350473abeab20b9809656c276562b5632503
parent 654e19a269f536ee01694ba9f04f94615b1ddcdb
Author: Anders Damsgaard <adc@geo.au.dk>
Date:   Mon, 29 Oct 2012 09:20:54 +0100

Added create_symlinks script

Diffstat:
Acreate_symlinks.sh | 29+++++++++++++++++++++++++++++
1 file changed, 29 insertions(+), 0 deletions(-)

diff --git a/create_symlinks.sh b/create_symlinks.sh @@ -0,0 +1,29 @@ +#!/bin/sh + +# Home folder dotfiles +for F in .bashrc .vimrc .tmux.conf .xpdfrc .signature; do + SOURCE=$PWD/$F + TARGET=~/$F + + # Check if file exists, rename if so + [ -f $TARGET ] && mv $TARGET ${TARGET}_bck + rm $TARGET + + echo "Symlink: $SOURCE -> $TARGET" + ln -s $SOURCE $TARGET +done + +# Home folder dotfolders +for F in .config .i3 .mutt .vim; do + SOURCE=$PWD/$F + TARGET=~/$F + + # Check if file exists, rename if so + [ -f $TARGET ] && mv $TARGET ${TARGET}_bck + rm -rf $TARGET + + echo "Symlink: $SOURCE -> $TARGET" + ln -s $SOURCE $TARGET +done + +