cleaned up linking, added file loop
This commit is contained in:
parent
8b14bd7908
commit
820851e145
9
link.sh
9
link.sh
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue