-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·36 lines (30 loc) · 1.16 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·36 lines (30 loc) · 1.16 KB
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
#!/usr/bin/env bash
cd $(dirname $0)
export BASE=$(pwd)
export VIMRC_INIT=true
case "$PREFIX" in
*com.termux*) termux=true ;;
*) termux=false ;;
esac
case "$OSTYPE" in
darwin*) brew install vim wget cmake;;
linux*) if [ "$termux" != true ]; then
sudo apt install -y git vim-nox wget jq cmake build-essential python3-dev libjansson-dev automake pkg-config
git clone https://github.com/universal-ctags/ctags.git --depth=1
cd ctags && ./autogen.sh && ./configure && make && sudo make install && cd -
fi ;;
*) echo "unknown: OS: $OSTYPE, U should install dependences by yourself" ;;
esac
if [ ! -d $HOME/.vim/pack/packager/opt/vim-packager ]; then
git clone https://github.com/kristijanhusak/vim-packager ~/.vim/pack/packager/opt/vim-packager
fi
if [ ! -d $HOME/.config/yapf ]; then
mkdir -p ~/.config/yapf
fi
if [ ! -f $HOME/.config/yapf/style ]; then
echo "[style]\nsplit_before_named_assigns = false\nallow_split_before_dict_value = false\ncolumn_limit = 120">>~/.config/yapf/style
fi
cp $BASE/.vimrc $HOME
#pip install yapf isort pyflakes
vim +PackagerInstall
unset VIMRC_INIT