Last active
May 22, 2018 17:41
-
-
Save MatteoJoliveau/7a2a0670a501a65d1a63491284555943 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "~> Hi! Let's set your new Mac up!" | |
# Install XCode Command Line Tools | |
xcode-select --install | |
# Install ASDF | |
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.4.3 | |
# Configure ASDF for Bash (will configure for Fish later once installed) | |
echo -e '\n. $HOME/.asdf/asdf.sh' >> ~/.bashrc | |
echo -e '\n. $HOME/.asdf/completions/asdf.bash' >> ~/.bashrc | |
# Install Ruby | |
asdf plugin-add ruby | |
asdf install ruby 2.5.1 | |
# Install Homebrew | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# Enable Homebrew Cask | |
brew tap caskroom/cask | |
# Install development packages | |
brew install coreutils automake autoconf openssl libyaml readline libxslt libtool unixodbc | |
# Install Git from Homebrew to replace the current one | |
brew install git | |
# LANGUAGES AND DEVTOOLS | |
# Install Java | |
asdf plugin-add java | |
asdf install java 8.172 | |
# Install Maven | |
asdf plugin-add maven | |
asdf install maven 3.5.3 | |
# Install Gradle | |
asdf plugin-add gradle | |
asdf install gradle 4.7 | |
# Install Erlang | |
asdf plugin-add erlang | |
asdf install erlang 20.3.6 | |
# Install Rebar | |
asdf plugin-add rebar | |
asdf install rebar 3.5.2 | |
# Install Elixir | |
asdf plugin-add elixir | |
asdf install elixir 1.6.5 | |
# Install Python | |
asdf plugin-add python | |
asdf install python 3.6.5 | |
# Install GPG | |
brew install gpg | |
# Install NodeJS | |
asdf plugin-add nodejs | |
asdf install nodejs 8.11.2 | |
# Install Yarn | |
brew install yarn | |
# Install LLVM | |
brew install llvm | |
# Intall Emscripten | |
brew install emscripten | |
# FISH | |
# Install Fish | |
brew install fish | |
# Install Oh My Fish | |
curl -L https://get.oh-my.fish | fish | |
# Install Fisherman | |
curl -Lo ~/.config/fish/functions/fisher.fish --create-dirs https://git.io/fisher | |
# Swith to fish | |
echo "~> SWITCHING TO FISH" | |
fish | |
# Install bass plugin | |
fisher edc/bass | |
# Install z | |
fisher z | |
# Install Powerline fonts | |
mkdir -p ~/fonts | |
git clone https://github.com/powerline/fonts ~/fonts/powerline | |
bash ~/fonts/powerline/install.sh | |
rm -rf ~/fonts | |
# Install Bob The Fish theme | |
fisher omf/theme-bobthefish | |
# Configure ASDF on Fish | |
echo 'source ~/.asdf/asdf.fish' >> ~/.config/fish/config.fish | |
mkdir -p ~/.config/fish/completions; and cp ~/.asdf/completions/asdf.fish ~/.config/fish/completions | |
# Enable for MacOS | |
sudo echo /usr/local/bin/fish >> /etc/shells | |
chsh -s /usr/local/bin/fish | |
bash | |
# DESKTOP APPS | |
# Install ITerm2 | |
brew cask install iterm2 | |
# Install Google Chrome | |
brew cask install google-chrome | |
# Install Visual Studio Code | |
brew cask install visual-studio-code | |
# Install JetBrains Toolbox | |
brew cask install jetbrains-toolbox | |
# Install Docker for Mac | |
brew cask install docker | |
# Install Keybase | |
brew cask install keybase | |
# Install Telegram | |
brew cask install telegram | |
# Install Alfred | |
brew cask install alfred | |
echo "~> We're done! Enjoy your new Mac!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment