-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvscode_install.sh
More file actions
executable file
·29 lines (24 loc) · 1.03 KB
/
vscode_install.sh
File metadata and controls
executable file
·29 lines (24 loc) · 1.03 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
#!/usr/bin/env bash
set -e
# shellcheck disable=SC2129
# shellcheck disable=SC2016
echo 'PATH="/home/vscode/.asdf/shims/:$PATH"' >> ~/.bashrc
echo '. <(asdf completion bash)' >> ~/.bashrc
echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc
# shellcheck disable=SC2016
echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc
# shellcheck disable=SC2016
echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc
# Install ASDF plugins
asdf plugin add shellcheck https://github.com/luizm/asdf-shellcheck.git
asdf plugin add direnv
asdf plugin add actionlint
asdf plugin add ruby https://github.com/asdf-vm/asdf-ruby.git
asdf plugin add terraform https://github.com/asdf-community/asdf-hashicorp.git
asdf plugin add trivy https://github.com/zufardhiyaulhaq/asdf-trivy.git
asdf plugin add yq https://github.com/sudermanjr/asdf-yq.git
# install cfn-guard
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/aws-cloudformation/cloudformation-guard/main/install-guard.sh | sh
# install base asdf versions of common tools
cd /home/vscode
asdf install