-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·67 lines (60 loc) · 1.38 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
#!/bin/bash
export DOTFILES=$HOME/.dotfiles
source $DOTFILES/install/helper.sh
echo "Installing dotfiles"
if [ "$(uname)" == "Linux" ]; then
echo "Running on Linux"
OS="linux"
elif [ "$(uname)" == "Darwin" ]; then
echo "Running on Mac OS X"
OS="osx"
else
echo "Unknown Operating System"
exit
fi
ACTION=${1:-"ALL"}
case $ACTION in
"ALL")
source $DOTFILES/install/base.sh
source $DOTFILES/install/zsh.sh
source $DOTFILES/install/vim.sh
source $DOTFILES/install/tmux.sh
source $DOTFILES/install/dev-tools.sh
source $DOTFILES/install/i3.sh
source $DOTFILES/install/fzf.sh
source $DOTFILES/install/kitty.sh
source $DOTFILES/install/nvim.sh
;;
"base")
source $DOTFILES/install/base.sh
;;
"zsh")
source $DOTFILES/install/zsh.sh
;;
"vim")
source $DOTFILES/install/vim.sh
;;
"tmux")
source $DOTFILES/install/tmux.sh
;;
"dev-tools")
source $DOTFILES/install/dev-tools.sh
;;
"i3")
source $DOTFILES/install/i3.sh
;;
"fzf")
source $DOTFILES/install/fzf.sh
;;
"kitty")
source $DOTFILES/install/kitty.sh
;;
"nvim")
source $DOTFILES/install/nvim.sh
;;
*)
echo "unknown ACTION"
exit
;;
esac
echo "Done."