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 30f6b7a1b926b5695301a132ec13b4e17c71234f
parent 06d34fbd516950bd296d2f686d821de857fcaf8f
Author: Anders Damsgaard <adc@geo.au.dk>
Date:   Tue,  4 Sep 2012 19:00:44 +0200

Merge branch 'master' of https://github.com/anders-dc/dotfiles

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

diff --git a/create_symlinks.sh b/create_symlinks.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +for F in .bashrc .vimrc; do + SOURCE=$PWD/$F + TARGET=~/$F + + # Check if file exists, rename if so + [ -f $TARGET ] && mv $TARGET ${TARGET}_bck + + echo "Symlink: $SOURCE -> $TARGET" + ln -s $SOURCE $TARGET + +done +