-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·66 lines (56 loc) · 1.79 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/bash
set -e
# ./packages.sh
export PATH="$PATH:/usr/local/go/bin"
git submodule update --init --recursive
# setup
(
if [ ! -d "${HOME}/Projects" ]; then mkdir ${HOME}/Projects; fi
)
# vim
(
cd ${HOME}/Projects
git clone https://github.com/vim/vim.git || (cd vim && git pull && cd ..)
cd vim
make distclean
./configure --with-features=huge \
--enable-multibyte \
--enable-python3interp=yes \
--with-python3-config-dir="$(python3-config --configdir)" \
--enable-perlinterp=yes \
--enable-gui=gtk2 \
--enable-cscope \
--prefix=/usr/local \
--enable-clipboard
make
sudo make install
sudo rm -rf ${HOME}/.vim/swapfiles
sudo mkdir -p ${HOME}/.vim/swapfiles
)
# fzf
(
cd ${HOME}/Projects
git clone --depth 1 https://github.com/junegunn/fzf.git ${HOME}/.fzf || (cd ${HOME}/.fzf && git pull && cd ..)
cd
printf '%s\n' y y n | ./.fzf/install
chmod +x ${HOME}/.fzf.zsh
)
# vim plugins (that are annoying and can't be just copied)
(
if [ ! -d "${HOME}/.vim/pack/plugins/start" ]; then sudo mkdir -p ${HOME}/.vim/pack/plugins/start; fi
sudo rm -rf ${HOME}/.vim/pack/plugins/start/YouCompleteMe
sudo rm -rf ${HOME}/.vim/pack/plugins/start/vim-fugitive
cd ${HOME}/.vim/pack/plugins/start
sudo git clone https://github.com/ycm-core/YouCompleteMe.git
sudo git clone https://github.com/tpope/vim-fugitive.git
cd ${HOME}/.vim/pack/plugins/start/YouCompleteMe
sudo git submodule update --init --recursive
sudo chmod -R 777 ${HOME}/.vim
python3 install.py --all
rm third_party/ycmd/third_party/tern_runtime/node_modules
)
# kitty
#(
# sudo curl -L https://sw.kovidgoyal.net/kitty/installer.sh | sh /dev/stdin
#)
./move.sh