This commit is contained in:
Stuce 2025-07-12 10:14:23 +02:00
parent cba0f6f825
commit 418e090ce6
37 changed files with 933 additions and 25 deletions

20
install.sh Executable file
View file

@ -0,0 +1,20 @@
#!/usr/bin/env bash
sources=("$PWD/config/" "$PWD/etc/")
targets=("$HOME/.config/" "/etc/")
length=${#sources[@]}
# TODO: need to address need to run as sudo to add symlink to certain folders, maybe ask in outer loop when sudo is needed and set a variable
for ((i = 0; i < length; i++)); do
source=${sources[i]}
target=${targets[i]}
for folder in $(ls $source); do
if [ -e "$target$folder" ]; then
echo "The file '$target$folder' exists."
else
ln -s $source$folder $target$folder
fi
done
done