mirror of
https://github.com/lloeki/dotfiles.git
synced 2025-12-06 15:34:40 +01:00
20 lines
448 B
Bash
Executable file
20 lines
448 B
Bash
Executable file
#!/bin/sh
|
|
|
|
for file in home/*; do
|
|
dotfile="$(basename "$file")"
|
|
case "${dotfile}" in
|
|
Makefile|*.md|LICENSE|setup.sh)
|
|
: # NOOP
|
|
;;
|
|
*)
|
|
if [ -d "${dotfile}" ]; then
|
|
:
|
|
else
|
|
# link the file with a leading dot
|
|
echo "linking ${dotfile}"
|
|
ln -sf "${PWD}/${file}" "$HOME/.${dotfile}"
|
|
fi
|
|
;;
|
|
esac
|
|
done
|
|
|