dotfiles/setup.sh

38 lines
634 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
nvim
fish
tmux
)
# 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"