From da709cd9e90c3ab644bb92700f0ed40d965b80d3 Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Thu, 13 Oct 2011 11:17:19 +0600 Subject: Initial commit. --- clone_and_link.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 clone_and_link.sh (limited to 'clone_and_link.sh') diff --git a/clone_and_link.sh b/clone_and_link.sh new file mode 100755 index 0000000..9140361 --- /dev/null +++ b/clone_and_link.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# Based on file from https://github.com/benhoskings/dot-files + +set -e +dir=dot-files/files + +cd && +ls --format=single-column --directory $dir/{,.}* | while read f ; do + [ "$f" == "$dir/." ] || + [ "$f" == "$dir/.." ] || + ln --verbose --symbolic --force "$f" ~/test/ +done -- cgit v1.2.3