-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.sh
executable file
·45 lines (33 loc) · 1.07 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
#!/bin/sh
pacman -Syu --noconfirm
pacman -S --noconfirm go
pacman -S --noconfirm mysql
pacman -S --noconfirm npm
pacman -S --noconfirm flex
pacman -S --noconfirm bison
pacman -S --noconfirm protobuf
pacman -Scc --noconfirm
npm install -g gitbook-cli
go version
cd /mnt
mkdir /mnt/go
cd /mnt/go
export GOPATH=`pwd`
go get -u -v github.com/nsf/gocode
go get -u -v github.com/rogpeppe/godef
go get -u -v golang.org/x/tools/cmd/guru
go get -u -v golang.org/x/tools/cmd/gorename
go get -u -v golang.org/x/tools/cmd/goimports
go get -u -v github.com/fatih/gomodifytags
go get -u -v golang.org/x/tools/cmd/godoc
go get -u -v github.com/k0kubun/pp
go get -u -v github.com/motemen/gore/cmd/gore
go get -u -v golang.org/x/tools/gopls
cp bin/* /usr/local/bin/
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /usr/local/bin v1.28.1
cd /mnt
rm -rf go
rm -rf ~/.cache
curl -o /root/.emacs.d/custom/awesome-tab.el https://raw.githubusercontent.com/manateelazycat/awesome-tab/master/awesome-tab.el
emacs --daemon
emacsclient -e '(kill-emacs)'