mirror of
https://github.com/lloeki/dotfiles.git
synced 2025-12-06 07:24:39 +01:00
simpler exclusion
This commit is contained in:
parent
2b4918ffed
commit
be802ddca0
1 changed files with 10 additions and 4 deletions
|
|
@ -1,9 +1,15 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
for dotfile in *; do
|
for dotfile in *; do
|
||||||
if [ "${dotfile}" != "scripts" ]; then
|
case "${dotfile}" in
|
||||||
echo "linking ${dotfile}"
|
scripts|Makefile)
|
||||||
ln -sf "$(pwd)/${dotfile}" "$HOME/.${dotfile}"
|
# NOOP
|
||||||
fi
|
;;
|
||||||
|
*)
|
||||||
|
# link the file with a leading dot
|
||||||
|
echo "linking ${dotfile}"
|
||||||
|
ln -sf "$(pwd)/${dotfile}" "$HOME/.${dotfile}"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue