File tree Expand file tree Collapse file tree 3 files changed +16
-10
lines changed Expand file tree Collapse file tree 3 files changed +16
-10
lines changed Original file line number Diff line number Diff line change 16
16
#### ubuntu
17
17
``` bash
18
18
./init.sh --with_vim_php --with_vim_c --with_vim_ycm --with_vim_lua --with_vim_go --with_java \
19
- --with_lua --with_python --with_leetcode --with_man --with_dict
19
+ --with_lua --with_python --with_leetcode --with_man --with_dict --with_bash
20
20
```
21
21
#### mac and centos
22
22
./init.sh
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ OPT_PYTHON=
9
9
OPT_LEETCODE=
10
10
OPT_MAN=
11
11
OPT_DICT=
12
+ OPT_BASH=
12
13
13
14
for option
14
15
do
24
25
--with_leetcode) OPT_LEETCODE=yes ;;
25
26
--with_man) OPT_MAN=yes ;;
26
27
--with_dict) OPT_DICT=yes ;;
28
+ --with_bash) OPT_BASH=yes ;;
27
29
esac
28
30
done
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
apt-get install -y gawk curl zsh language-pack-zh-hans language-pack-zh-hans-base \
4
- git unzip wget curl python-dev cscope cmake gdb lsof \
5
- python3-pip python-pip shellcheck libtool-bin gettext sudo \
6
- automake m4 autoconf libtool build-essential cmake pkg-config lua5.2 wamerican \
7
- autojump nmap iproute2 net-tools sshfs \
8
- npm
4
+ git unzip wget python-dev python3-pip python-pip lsof \
5
+ libtool-bin gettext sudo \
6
+ cmake automake m4 autoconf libtool build-essential pkg-config lua5.2 wamerican \
7
+ autojump nmap iproute2 net-tools sshfs
9
8
10
9
apt-get remove -y neovim exuberant-ctags
11
10
12
- if ! which bash-language-server > /dev/null; then
13
- npm i -g bash-language-server
14
- fi
15
11
if [ " Y$OPT_MAN " == " Yyes" ]; then
16
12
[ -f /etc/dpkg/dpkg.cfg.d/excludes ] && rm -rf /etc/dpkg/dpkg.cfg.d/excludes
17
13
apt-get install -y \
31
27
32
28
if [ " Y$OPT_VIM_C " == " Yyes" ]; then
33
29
apt-get install -y \
34
- valgrind clang-format
30
+ valgrind clang-format cscope gdb
31
+ fi
32
+
33
+ if [ " Y$OPT_BASH " == " Yyes" ]; then
34
+ apt-get install -y \
35
+ npm shellcheck
36
+ if ! which bash-language-server > /dev/null; then
37
+ npm i -g bash-language-server
38
+ fi
35
39
fi
36
40
37
41
# install ripgrep
You can’t perform that action at this time.
0 commit comments