mirror of
https://github.com/lloeki/dotfiles.git
synced 2025-12-06 07:24:39 +01:00
refactoring
This commit is contained in:
parent
53b18ca0db
commit
f699a87614
24 changed files with 67 additions and 57 deletions
5
setup.sh
5
setup.sh
|
|
@ -1,6 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
for dotfile in *; do
|
||||
for file in home/*; do
|
||||
dotfile="$(basename "$file")"
|
||||
case "${dotfile}" in
|
||||
Makefile|*.md|LICENSE|setup.sh)
|
||||
# NOOP
|
||||
|
|
@ -8,7 +9,7 @@ for dotfile in *; do
|
|||
*)
|
||||
# link the file with a leading dot
|
||||
echo "linking ${dotfile}"
|
||||
ln -sf "$(pwd)/${dotfile}" "$HOME/.${dotfile}"
|
||||
ln -sf "$(pwd)/${file}" "$HOME/.${dotfile}"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue