Skip to content

Instantly share code, notes, and snippets.

@Chervychnyk
Forked from bradp/setup.sh
Last active June 30, 2021 11:03
Show Gist options
  • Save Chervychnyk/877fc70575e08988de214781ff33bf63 to your computer and use it in GitHub Desktop.
Save Chervychnyk/877fc70575e08988de214781ff33bf63 to your computer and use it in GitHub Desktop.
New Mac Setup Script
echo "Installing xcode-stuff"
xcode-select --install
# Check for Homebrew, and then install it
if test ! "$(which brew)"; then
echo "Installing homebrew..."
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo "Homebrew installed successfully"
else
echo "Homebrew already installed!"
fi
# Update homebrew recipes
echo "Updating homebrew..."
brew update
echo "Installing Git..."
brew install git
echo "Git config"
git config --global user.name "Artem Chervychnyk"
git config --global user.email [email protected]
echo "Installing brew git utilities..."
brew install git-extras
brew install git-flow
echo "Installing other brew stuff..."
brew install wget
brew install postgresql
brew install redis
brew install imagemagick
brew install ffmpeg
brew install ffmpegthumbnailer
brew tap homebrew/cask-fonts
brew install font-hack font-fira-code font-cascadia-code font-space-mono font-iosevka
echo "Cleaning up brew"
brew cleanup
# Update the Terminal
# Install oh-my-zsh
echo "Installing oh-my-zsh..."
curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh
echo "Setting up Zsh plugins..."
cd ~/.oh-my-zsh/custom/plugins
git clone https://github.com/zsh-users/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
source ~/.zshrc
# Apps
apps=(
alfred
bartender
bettertouchtool
firefox
google-chrome
rubymine
fork
spotify
iterm2
vlc
slack
skype
telegram
transmission
zoomus
postman
visual-studio-code
wechat
wechatwebdevtools
)
# Install apps to /Applications
# Default is: /Users/$user/Applications
echo "installing apps with Cask..."
brew install --cask --appdir="/Applications" ${apps[@]}
brew cleanup
if [ -x nvm ]; then
echo "Installing NVM…"
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
echo "NVM installed!"
echo "Installing latest Node…"
nvm install node
nvm use node
nvm run node --version
nodev=$(node -v)
echo "Using Node $nodev!"
else
echo "NVM/Node already installed. Skipping."
fi
echo "Setting some Mac settings..."
#"Disabling OS X Gate Keeper"
#"(You'll be able to install any app you want from here on, not just Mac App Store apps)"
sudo spctl --master-disable
echo "Done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment