refactored setup

This commit is contained in:
Loic Nageleisen 2011-12-13 10:25:25 +01:00
parent 26581a93ce
commit a1d90602ea
2 changed files with 1 additions and 6 deletions

15
setup.sh Executable file
View file

@ -0,0 +1,15 @@
#!/bin/sh
for dotfile in *; do
case "${dotfile}" in
Makefile|*.md|LICENSE|setup.sh)
# NOOP
;;
*)
# link the file with a leading dot
echo "linking ${dotfile}"
ln -sf "$(pwd)/${dotfile}" "$HOME/.${dotfile}"
;;
esac
done