Created
March 20, 2022 02:07
-
-
Save hiro08gh/aad8111b21ca9e526beed733a606ab92 to your computer and use it in GitHub Desktop.
mac setup scrpipt
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 | |
SUDO_USER=$(whoami) | |
if test ! $(which brew); then | |
echo "Installing homebrew..." | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
fi | |
echo "Updateing homebrew..." | |
brew update | |
echo "Upgrading homebrew..." | |
brew upgrade | |
echo "Installing Git..." | |
brew install git | |
git config --global user.name "hiro08gh" | |
git config --global user.email "hiro08gh@gmail.com" | |
echo "Installing homebrew cask" | |
brew install caskroom/cask/brew-cask | |
#Install Zsh & Oh My Zsh | |
echo "Installing Oh My ZSH..." | |
curl -L http://install.ohmyz.sh | sh | |
echo "Setting up Zsh plugins..." | |
cd ~/.oh-my-zsh/custom/plugins | |
git clone git://github.com/zsh-users/zsh-syntax-highlighting.git | |
echo "Setting ZSH as shell..." | |
chsh -s /bin/zsh | |
PACKAGES=( | |
jq | |
nvm | |
node | |
deno | |
vim | |
watch | |
wget | |
) | |
echo "Installing packages..." | |
brew install ${PACKAGES[@]} | |
apps=( | |
google-chrome | |
visual-studio-code | |
iterm2 | |
raycast | |
slack | |
figma | |
) | |
echo "Installing cask apps..." | |
sudo -u $SUDO_USER brew install --cask ${CASKS[@]} | |
echo "Cleaning up" | |
brew cleanup | |
echo "Ask the doctor" | |
brew doctor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment