dotfiles/setup.sh
2024-10-05 13:24:27 +02:00

40 lines
647 B
Bash
Executable File

#!/usr/bin/env bash
# make sure we have pulled in and updated any submodules
git submodule init
git submodule update
# folders that should, or only need to be installed for a local user
configs=(
bin
git
i3
kitty
vim
nvim
fish
tmux
rofi
)
# run the stow command for the passed in directory ($2) in location $1
stowit() {
usr=$1
app=$2
# -v verbose
# -R restow
# -t target
stow --dotfiles -v -R -t "${usr}" "${app}"
}
echo ""
echo "Stowing apps for user: $(whoami)"
# install only user space folders
for config in "${configs[@]}"; do
stowit "${HOME}" "$config"
done
echo ""
echo "##### ALL DONE"