move to stow
This commit is contained in:
parent
20f5b85263
commit
149e55fc05
40 changed files with 2730 additions and 622 deletions
20
setup.sh
20
setup.sh
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue