-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.sh
executable file
·37 lines (30 loc) · 1.01 KB
/
base.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
#!/usr/bin/env bash
## installs various prerequisit softwares
## typically used once per new machine
source ./user-interactions.sh
if xcode-select -p 1>/dev/null; then
already_installed "Command line tools"
else
xcode-select --install
fi
if has_exec brew; then
already_installed "Homebrew"
else
alert "Reference: https://docs.brew.sh/Installation"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
fi
if [ -d "$HOME/.oh-my-zsh" ]; then
already_installed "Oh My Zsh!"
else
alert "Reference: https://github.com/robbyrussell/oh-my-zsh"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
fi
## Version Managers - for languages/platforms like JVM, Node, Ruby, Python etc.
if [ -d "$HOME/.asdf" ]; then
already_installed "asdf"
else
alert "Reference: https://asdf-vm.com/guide/getting-started.html#_2-download-asdf"
brew install asdf
echo ". /usr/local/opt/asdf/libexec/asdf.sh" >> ~/.zshrc
source ~/.zshrc
fi