Initial commit, added nvim

This commit is contained in:
Louis Hollingworth 2024-05-22 17:11:29 +01:00
commit f5f7885578
Signed by: lucxjo
GPG key ID: A11415CB3DC7809B
13 changed files with 544 additions and 0 deletions

38
setup.sh Executable file
View file

@ -0,0 +1,38 @@
#!/usr/bin/env bash
# what directories should be installable by all users including the root user
base=(
)
# folders that should, or only need to be installed for a local user
useronly=(
nvim
)
# run the stow command for the passed in directory ($2) in location $1
stowit() {
usr=$1
app=$2
# -v verbose
# -R recursive
# -t target
stow -v -R -t ${usr} ${app}
}
echo ""
echo "Stowing apps for user: ${whoami}"
# install apps available to local users and root
for app in ${base[@]}; do
stowit "${HOME}" $app
done
# install only user space folders
for app in ${useronly[@]}; do
if [[! "$(whoami)" = *"root"*]]; then
stowit "${HOME}" $app
fi
done
echo ""
echo "##### ALL DONE"