Permalink
Browse files

Initial version

  • Loading branch information...
0 parents commit 5c6b253bab0c3a422fc3de381e6b96283be1e656 @ombr committed Mar 28, 2012
Showing with 23 additions and 0 deletions.
  1. +1 −0 README.txt
  2. +22 −0 install.sh
@@ -0,0 +1 @@
+Use the install script to install a .dotfiles repository
@@ -0,0 +1,22 @@
+#!/bin/bash
+cd $(dirname $0)
+
+for i in ../.*; do
+ skip=false
+ for ignore in ".git" "." ".."; do
+ #echo $i
+ #echo "../"$ignore
+ #echo "---"
+ if [ "$i" = "../"$ignore ]; then
+ skip=true
+ break;
+ fi;
+ done;
+ if [ $skip = true ]; then
+ continue;
+ fi;
+ if [ ! -e "../"$i ]; then
+ echo $(basename $i);
+ ln -s $(realpath $i) ~/$(basename $i)
+ fi;
+done;

0 comments on commit 5c6b253

Please sign in to comment.