mirror of
https://github.com/lloeki/dotfiles.git
synced 2025-12-06 07:24:39 +01:00
refactored setup
This commit is contained in:
parent
26581a93ce
commit
a1d90602ea
2 changed files with 1 additions and 6 deletions
15
setup.sh
Executable file
15
setup.sh
Executable 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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue