cleaned up linking, added file loop

This commit is contained in:
Siina Mashek 2020-07-01 10:43:10 +03:00 committed by Siina Maček
parent 8b14bd7908
commit 820851e145

View File

@ -1,9 +1,12 @@
#!/bin/sh
folders=($(ls ${PWD}/config))
folders=($(ls $PWD/config))
files=("Xresources" "bashrc")
for folder in "${folders[@]}"; do
ln -sf ${PWD}/config/${folder} ${HOME}/.config/
ln -sf $PWD/config/$folder $HOME/.config/
done
ln -sf ${PWD}/Xresources ${HOME}/.Xresources
for file in "${files[@]}"; do
ln -sf $PWD/$file $HOME/.$file
done