-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·70 lines (60 loc) · 1.19 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
#!/bin/bash
# pull other repo
git submodule update --recursive --init
sudo apt-get update
# options:
help_msg="options:
-h, --help: show help messages
--omz-no-check: don't update oh-my-zsh
"
tmux_separator_arrow=true
tmux_mouse=true
tmux_theme_navy=true
zsh_theme=p10k
zsh_no_check=false
for i in $*; do
if [ $i == "-h" ] || [ $i == "--help" ]
then
printf "${help_msg}"
exit 0
elif [ $i == "--omz-no-check" ]
then
zsh_no_check=true
else
printf "[ERROR] No option: ${i}\n\n"
printf "${help_msg}"
exit 1
fi
done
# font
bash -x ./scripts/font.sh
# ssh
bash -x ./scripts/ssh.sh
# tmux
tmux_option=""
if [ $tmux_separator_arrow == "true" ]
then
tmux_option="${tmux_option} -a"
fi
if [ $tmux_mouse == "true" ]
then
tmux_option="${tmux_option} -m"
fi
if [ $tmux_theme_navy == "true" ]
then
tmux_option="${tmux_option} -n"
fi
bash -x ./scripts/tmux.sh $tmux_option
# zsh
zsh_option=""
if [ $zsh_theme == "p10k" ]
then
zsh_option="${zsh_option} -p10k"
fi
if [ $zsh_no_check == "true" ]
then
zsh_option="${zsh_option} -no-check"
fi
bash -x ./scripts/zsh.sh ${zsh_option}
# vim
cd ./vimrc && bash -x ./install.sh && cd ..