move to stow

This commit is contained in:
Hactarus 2022-09-02 00:51:24 +02:00
parent 20f5b85263
commit 149e55fc05
40 changed files with 2730 additions and 622 deletions

View file

@ -6,12 +6,24 @@ git submodule update
# what directories should be installable by all users including the root user
base=(
git
helix
home
htop
nano
puppet
ssh
terminfo
tmux
vim
zsh
)
# folders that should, or only need to be installed for a local user
useronly=(
git
alacritty
asciinema
awesome
)
# run the stow command for the passed in directory ($2) in location $1
@ -29,15 +41,15 @@ echo "Stowing apps for user: ${whoami}"
# install apps available to local users and root
for app in ${base[@]}; do
stowit "${HOME}" $app
stowit "${HOME}" $app
done
# install only user space folders
for app in ${useronly[@]}; do
if [[ ! "$(whoami)" = "root" ]]; then
stowit "${HOME}" $app
stowit "${HOME}" $app
fi
done
echo ""
echo "##### ALL DONE"
echo "##### ALL DONE"