-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
70 lines (58 loc) · 1.06 KB
/
setup.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
#!/bin/bash
if ! command -v stow &> /dev/null
then
echo "GNU Stow is not installed"
exit
fi
if ! command -v alacricitty &> /dev/null
then
echo "alacricitty is not installed"
exit
fi
if ! command -v nvim &> /dev/null
then
echo "nvim is not installed"
exit
fi
if ! command -v tmux &> /dev/null
then
echo "tmux is not installed"
exit
fi
if ! command -v zsh &> /dev/null
then
echo "zsh is not installed"
exit
fi
echo 'Stowing dotfiles...'
if [ -f ~/.zshrc ]; then
mv ~/.zshrc ~/.zshrc.bak
stow zshrc
else
stow zshrc
fi
if [ -f ~/.p10k.zsh ]; then
mv ~/.p10k.zsh ~/.p10k.zsh.bak
stow p10k
else
stow p10k
fi
if [ -f ~/.tmux.conf ]; then
mv ~/.tmux.conf ~/.tmux.conf.bak
stow tmux
else
stow tmux
fi
if [ -f ~/alacricitty.yml ]; then
mv ~/alacricitty.yml ~/alacricitty.yml.bak
stow alacricitty
else
stow alacricitty
fi
if [ -f ~/.config/lvim/config.lua ]; then
mv ~/.config/lvim/config.lua ~/.config/lvim/config.lua.bak
stow .config/lvim
else
stow .config/lvim
fi
stow gitignore_global