-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup_macbook_tools.sh
executable file
·78 lines (76 loc) · 1.76 KB
/
setup_macbook_tools.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
69
70
71
72
73
74
75
76
77
78
#!/bin/bash
# add -x for extended output
# ---------------------------------------------------------------------------- #
# Install homebrew and common tools
# ---------------------------------------------------------------------------- #
if ! command -V brew; then
curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh | bash
else
echo "brew already installed"
fi
if ! command -V python3; then
brew install python3
else
echo "python3 already installed"
fi
if ! command -V go; then
brew install go
else
echo "go already installed"
fi
if ! command -V git; then
brew install git
else
echo "git already installed"
fi
if ! command -V terraform; then
brew install terraform
else
echo "terraform already installed"
fi
# ---------------------------------------------------------------------------- #
# Setup vim editor
# https://github.com/neovim/neovim/wiki/Installing-Neovim
# https://spacevim.org/
# ---------------------------------------------------------------------------- #
if ! command -V nvim; then
brew install neovim
else
echo "neovim already installed"
fi
if [[ ! -d "$HOME/.SpaceVim" ]]; then
curl -sLf https://spacevim.org/install.sh | bash
else
echo "SpaceVim already installed"
fi
if ! command -V kubectl; then
brew install kubectl
else
echo "kubectl already installed"
fi
if ! command -V yq; then
brew install yq
else
echo "yq already installed"
fi
if ! command -V jq; then
brew install jq
else
echo "jq already installed"
fi
if ! command -V gmailctl; then
brew install gmailctl
else
echo "gmailctl already installed"
fi
if ! command -V aws; then
brew install awscli
else
echo "aws already installed"
fi
fi
if ! command -V cfn; then
brew install cloudformation-cli
else
echo "cfn already installed"
fi