Skip to content

Instantly share code, notes, and snippets.

@alexmarles
Last active May 25, 2022 10:23
Show Gist options
  • Save alexmarles/4d11bd5c600aef71f42ee2eff9b08df0 to your computer and use it in GitHub Desktop.
Save alexmarles/4d11bd5c600aef71f42ee2eff9b08df0 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Install Brew
echo "Installing Homebrew for package managing"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install git
echo "Installing last git from brew"
brew install git
# Install iterm2
echo "Installing iterm2"
brew install --cask iterm2
# -----------------------------
# CLOSE TERMINAL AND OPEN iTerm
# -----------------------------
# Optionally set ZSH as default shell
chsh -s $(which zsh)
# Install oh-my-zsh
echo "Installing oh-my-zsh"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# -------------------------
# CLOSE AND REOPEN TERMINAL
# -------------------------
# Install ZSH plugins
git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions
# Install fnm (Node versions manager)
echo "Installing fnm for Node management"
curl -fsSL https://fnm.vercel.app/install | bash
source ~/.zshrc
# Install Yarn
brew install yarn
source ~/.zshrc
echo "DONE! Restart your terminal NOW!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment