-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinstall
executable file
·52 lines (45 loc) · 1007 Bytes
/
install
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
#!/bin/bash
#
# Internal Variables
#
PLATFORM=$(uname -s)
CWD=$(dirname ${BASH_SOURCE[0]})
OPTION_VERBOSE=0
source $CWD/arch/common.bash
case $PLATFORM in
"Darwin")
source $CWD/arch/darwin.bash
;;
"Linux")
if [ "$(os_name)" = "centos" ]; then
source $CWD/arch/centos.bash
elif [ "$(os_name)" = "ubuntu" ] || [ "$(os_name)" = "Ubuntu" ]; then
source $CWD/arch/ubuntu.bash
else
echo "Unsupport Linux version $(os_name)"
exit 1
fi
;;
*)
echo "Unsupport PLATFORM -> $PLATFORM"
exit 1
;;
esac
for opt in "$@"; do
case $opt in
--d) OPTION_VERBOSE=1 ;;
--help|*)
_usage
exit 0
;;
esac
done
_banner hi
_progress install_git git
_progress install_moreutils utils
_progress install_ag ag
_progress install_fzf fzf
_progress update_bashrc bash
_progress update_vimrc vim
_progress update_tmux tmux
_banner bye