Skip to content

Commit bf3556e

Browse files
committed
merger
2 parents 41009a8 + 835466a commit bf3556e

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#### ubuntu
1717
```bash
1818
./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
2020
```
2121
#### mac and centos
2222
./init.sh

helper/option.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ OPT_PYTHON=
99
OPT_LEETCODE=
1010
OPT_MAN=
1111
OPT_DICT=
12+
OPT_BASH=
1213

1314
for option
1415
do
@@ -24,5 +25,6 @@ do
2425
--with_leetcode) OPT_LEETCODE=yes ;;
2526
--with_man) OPT_MAN=yes ;;
2627
--with_dict) OPT_DICT=yes ;;
28+
--with_bash) OPT_BASH=yes ;;
2729
esac
2830
done

tools/dep/ubuntu_init.sh

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
#!/bin/bash
22

33
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
98

109
apt-get remove -y neovim exuberant-ctags
1110

12-
if ! which bash-language-server > /dev/null; then
13-
npm i -g bash-language-server
14-
fi
1511
if [ "Y$OPT_MAN" == "Yyes" ];then
1612
[ -f /etc/dpkg/dpkg.cfg.d/excludes ] && rm -rf /etc/dpkg/dpkg.cfg.d/excludes
1713
apt-get install -y \
@@ -31,7 +27,15 @@ fi
3127

3228
if [ "Y$OPT_VIM_C" == "Yyes" ];then
3329
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
3539
fi
3640

3741
# install ripgrep

0 commit comments

Comments
 (0)