-
Notifications
You must be signed in to change notification settings - Fork 3
/
tools.default.sh
executable file
·68 lines (57 loc) · 2.26 KB
/
tools.default.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
67
68
#!/usr/bin/env sh
#################################################
# Default tools (my favourites) to make the dev
# experience nice. Can be customised by adding
# tools.override.sh
#################################################
set -eux
# Basics for installing other tools
apt-get update
apt-get install -y \
ca-certificates \
curl
chmod -R +x .git/hooks
# Useful tools
apt-get update
apt-get install -y \
zsh \
python3 \
pre-commit
# Command line setup
curl -fsSL \
https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh |
zsh || true
git clone https://github.com/djui/alias-tips.git \
~/.oh-my-zsh/custom/plugins/alias-tips
git clone https://github.com/zsh-users/zsh-autosuggestions \
~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git \
~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
git clone https://github.com/gembaadvantage/uplift-oh-my-zsh \
~/.oh-my-zsh/plugins/uplift
# https://github.com/golang/vscode-go/wiki/tools
go install golang.org/x/tools/gopls@latest
go install github.com/ramya-rao-a/go-outline@latest
go install golang.org/x/tools/cmd/goimports@latest
go install github.com/stamblerre/gocode@latest
go install github.com/go-delve/delve/cmd/dlv@latest
go install github.com/fatih/gomodifytags@latest
go install github.com/josharian/impl@latest
go install github.com/cweill/gotests/gotests@latest
go install mvdan.cc/gofumpt@latest
cp -f .devcontainer/.zshrc $HOME
# See https://superuser.com/questions/1499698/ssh-login-causes-repeating-characters-in-my-zsh
echo "export LC_ALL=C.UTF-8" >>~/.zshrc
# Required by vscode extension golang.go
go install golang.org/x/tools/gopls@latest
go install github.com/go-delve/delve/cmd/dlv@latest
go install honnef.co/go/tools/cmd/staticcheck@latest
# Github CLI
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" |
tee /etc/apt/sources.list.d/github-cli.list >/dev/null
apt update
apt install gh -y
# Setup anything we need for development
make init-dev