-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·50 lines (40 loc) · 1.33 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
#!/bin/bash
# ---------------------------------------------------------
# Check if script is running with sudo privileges
# ---------------------------------------------------------
#if [ "$(id -u)" != "0" ]; then
# echo "This script must be run as root" 1>&2
# exit 1
#fi
# ---------------------------------------------------------
USER=`whoami`
chown -R $USER .
rm -rf bundle
rm -rf ftplugin
mkdir bundle
mkdir ftplugin
rm /usr/local/bin/show-tests
ln show_tests.py /usr/local/bin/show-tests
rm /usr/local/bin/dx
ln bin/dx.py /usr/local/bin/dx
rm /usr/local/bin/dxi
ln bin/dxi.py /usr/local/bin/dxi
rm /usr/local/bin/jcurl
ln jcurl.sh /usr/local/bin/jcurl
curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# pip install --upgrade nose
# pip install --upgrade flake8
# pip install -e "git+https://github.com/mcrute/nose-machineout#egg=nose_machineout"
# pip install --upgrade vim_bridge
# pip install --upgrade isort
rm -rf vim-pyunit
cp vimrc ~/.vimrc
cp isort.cfg ~/.isort.cfg
cp flake8 ~/.config/flake8
chown $USER ../.vimrc
mkdir -p ~/.vim/syntax
NVIMV=`nvim --version | head -1 | sed -e 's#.*v\(\)#\1#'`
echo NVIM version: $NVIMV
cp syntax/python.vim /usr/local/Cellar/neovim/$NVIMV/share/nvim/runtime/syntax/python.vim
nvim +PlugInstall +qall
nvim +UpdateRemotePlugins