aboutsummaryrefslogtreecommitdiff
path: root/clone_and_link.sh
diff options
context:
space:
mode:
authorAnton Bobov <bobov_a@sibsac.ru>2011-10-13 11:17:19 +0600
committerAnton Bobov <bobov_a@sibsac.ru>2011-10-13 11:17:19 +0600
commitda709cd9e90c3ab644bb92700f0ed40d965b80d3 (patch)
tree144e5470327f72b8489141cd7595b652c6c32616 /clone_and_link.sh
Initial commit.
Diffstat (limited to 'clone_and_link.sh')
-rwxr-xr-xclone_and_link.sh13
1 files changed, 13 insertions, 0 deletions
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