cleaned up linking, added file loop
This commit is contained in:
parent
8b14bd7908
commit
820851e145
1 changed files with 6 additions and 3 deletions
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 a new issue