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
|
||||
|
||||
for dotfile in *; do
|
||||
if [ "${dotfile}" != "scripts" ]; then
|
||||
case "${dotfile}" in
|
||||
scripts|Makefile)
|
||||
# NOOP
|
||||
;;
|
||||
*)
|
||||
# link the file with a leading dot
|
||||
echo "linking ${dotfile}"
|
||||
ln -sf "$(pwd)/${dotfile}" "$HOME/.${dotfile}"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue