-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·113 lines (76 loc) · 2.15 KB
/
setup.sh
File metadata and controls
executable file
·113 lines (76 loc) · 2.15 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
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
#!/usr/bin/env sh
set -xveu
sudo -E pacman -S --noconfirm ctags python-pip npm archey3
#--
# pyenv
#--
git clone https://github.com/yyuu/pyenv.git ~/.pyenv
git clone https://github.com/yyuu/pyenv-virtualenv.git ~/.pyenv/plugins/pyenv-virtualenv
#--
# rbenv
#--
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
#--
# nodenv
#--
git clone https://github.com/nodenv/nodenv.git ~/.nodenv
git clone https://github.com/nodenv/node-build.git ~/.nodenv/plugins/node-build
git clone https://github.com/nodenv/nodenv-aliases.git ~/.nodenv/plugins/nodenv-aliases
cd ~/.nodenv && src/configure && make -C src
cd
#--
# vim
#--
sudo -E pacman -S --noconfirm neovim python-neovim openssl-1.0
# pyenv activate 用 (これが無いとコケる)
export PYENV_ROOT="${HOME}/.pyenv"
export PATH=${PYENV_ROOT}/bin:${PATH}
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
CFLAGS=-I/usr/include/openssl-1.0 LDFLAGS=-L/usr/lib64/openssl-1.0 pyenv install -v 2.7.16 -s
CFLAGS=-I/usr/include/openssl-1.0 LDFLAGS=-L/usr/lib64/openssl-1.0 pyenv install -v 3.7.2 -s
pyenv virtualenv 2.7.16 neovim2
pyenv virtualenv 3.7.2 neovim3
# flake8 と black はaleが使用する
# python2にはblackが無い
pyenv activate neovim2
pip install pynvim flake8
#pyenv which python
pyenv activate neovim3
pip install pynvim flake8 black
#pyenv which python
# rbenv用
export PATH=~/.rbenv/bin:${PATH}
eval "$(rbenv init -)"
rbenv install 2.6.3 -s
mkdir /tmp/rbenv_nvim
cd /tmp/rbenv_nvim
rbenv local 2.6.3
rbenv exec gem install neovim
# nodenv用
export PATH="~/.nodenv/bin:${PATH}"
eval "$(nodenv init -)"
nodenv install 12.3.1 -s
nodenv alias nvim 12.3.1
mkdir /tmp/nodenv_nvim
cd /tmp/nodenv_nvim
nodenv local nvim
nodenv exec npm -g install neovim typescript eslint tslint
#--
# Vim: Python関連のプラグイン
#--
sudo -E pacman -S --noconfirm autopep8 flake8
#--
# Vim: permission
#--
chmod 700 ~/dotfiles/_vim/undo/
#--
# goenv
#--
#git clone https://github.com/syndbg/goenv.git ~/.goenv
#--
# tmux
#--
sudo -E pacman -S --noconfirm xsel
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm