dots/setup/config
2023-03-06 19:57:24 -03:00

20 lines
384 B
Bash
Executable file

#!/usr/bin/env bash
echo -e "\n${BLD}${SUL}${GRN}Setting up config...${RST}\n"
original_pwd="$(pwd)"
cd "$DOTS/config" || exit
readarray -t configs < <(
fd -d 1 \
--exclude "*.old" \
--exclude "create*" \
--exclude "tmux" \
--exclude "git"
)
for dot in "${configs[@]}"; do
symlink "$(pwd)/$dot" "${CONFIG}"
done
cd "$original_pwd" || exit