-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinstall.sh
executable file
·71 lines (61 loc) · 1.1 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/bash
set -e
stow -V || (echo "Please install GNU Stow"; exit 1)
TARGETS=(
fonts
gdb
git
htop
mc
mpv
ranger
tmux
vim
zsh
)
case $(uname) in
Linux)
TARGETS+=(
awesome
firejail
picom
rofi
xorg
zathura
alacritty
ssh-agent
sway
)
;;
Darwin)
TARGETS+=(
alacritty
hammerspoon
)
;;
esac
pushd ${HOME}/.dotfiles
for X in ${TARGETS[@]}; do
echo "Installing ${X}..."
if [[ "$X" == "htop" ]]; then
mkdir -p ~/.config/htop/
cp htop/.config/htop/htoprc ~/.config/htop/htoprc
continue
fi;
if [[ "$X" == "awesome" ]]; then
touch ~/.awesome.local.lua
fi;
if [[ "$X" == "xorg" ]]; then
touch ~/.Xresources.local
fi;
if [[ "$X" == "ssh-agent" ]]; then
# systemd needs a real directory, not a symlink
mkdir -p ~/.config/systemd/user/ssh-agent.service.d/
fi;
stow -D $X
stow $X
if [[ "$X" == "fonts" ]]; then
~/.local/share/fonts/nerd-fonts/install.sh
fi;
done;
popd