summaryrefslogtreecommitdiff
path: root/stowcmds.sh
blob: f7b3345871b8b2770b957cb6abc8ec60f249f482 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash

case "${MACH:=desktop}" in
	'desktop')
		mkdir -p "$HOME/bin"
		stow -d bin/ -t "$HOME/bin" -R common dmscripts extra
		mkdir -p "$HOME/.config"
		stow -d config/ -t "$HOME/.config" -R essentials common extra theme X
		stow -d config/ -t "$HOME/" -R zshrc
		;;
	"server")
		mkdir -p "$HOME/bin"
		stow -d bin/ -t "$HOME/bin" -R common
		mkdir -p "$HOME/.config"
		stow -d config/ -t "$HOME/.config" -R essentials common
		stow -d config/ -t "$HOME/" -R zshrc
		;;
	*)
		break
esac