Permalink
Browse files

Adding a script to populate your home directory with symlinks to thes…

…e dotfiles. Prompts before over-writing anything.
  • Loading branch information...
1 parent edb5a46 commit 8fe7e1043c877300d035dc99af5787db66306a82 @markhepburn committed Aug 27, 2010
Showing with 13 additions and 0 deletions.
  1. +13 −0 create_links.sh
View
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+# # This is in .bashrc; uncomment if necessary though:
+# function canonicalise {
+# local dirpart=`dirname $1`
+# cd $dirpart && pwd -P
+# }
+
+CURRENTDIR=`canonicalise $0`
+
+for dotfile in `ls -aF | grep -v '/$' | grep '^\.'`; do
+ ln -si "${CURRENTDIR}/$dotfile" ~/$dotfile
+done

0 comments on commit 8fe7e10

Please sign in to comment.