Skip to content

Instantly share code, notes, and snippets.

@hamaney
Last active January 28, 2018 09:35
Show Gist options
  • Save hamaney/94fc516be9b095459f80ad1a165e9be6 to your computer and use it in GitHub Desktop.
Save hamaney/94fc516be9b095459f80ad1a165e9be6 to your computer and use it in GitHub Desktop.
the way i set up my mac for new system
#!/bin/bash
# to wait for certain lines to excute
function pause(){
read -p "$*"
}
#show hidden files
defaults write com.apple.finder AppleShowAllFiles YES
killall Finder
#install Xcode tools
xcode-select --install
pause 'Press [Enter] key after code-select finishes to continue...'
# HOMEBREW -----------------------------------------------------------------
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
pause 'Press [Enter] key after Homebrew finishes...'
#Apps On Dock
brew cask install google-chrome
brew cask install anki
brew cask install viber
brew cask install slack
brew cask install iterm2
brew cask install parallels
brew cask install visual-studio-code
defaults write com.apple.dock persistent-apps -array-add '<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>/Applications/Google Chrome.app</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>'
defaults write com.apple.dock persistent-apps -array-add '<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>/Applications/Anki.app</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>'
defaults write com.apple.dock persistent-apps -array-add '<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>/Applications/viber.app</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>'
defaults write com.apple.dock persistent-apps -array-add '<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>/Applications/slack.app</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>'
defaults write com.apple.dock persistent-apps -array-add '<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>/Applications/iTerm.app</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>'
defaults write com.apple.dock persistent-apps -array-add '<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>/Applications/Parallels Desktop.app/</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>'
defaults write com.apple.dock persistent-apps -array-add '<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>/Applications/Visual Studio Code.app/</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>'
killall Dock
#Other Apps
brew cask install adobe-acrobat-reader
brew cask install google-backup-and-sync
brew cask install vlc
brew install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
brew install wget
#python and packages
brew install python3
#vs install extensions
#C++
code --install-extension ms-vscode.cpptools
code --install-extension xaver.clang-format
#Python
code --install-extension ms-python.python
#Web
code --install-extension eg2.vscode-npm-script
code --install-extension formulahendry.auto-close-tag
#General
code --install-extension robertohuertasm.vscode-icons
code --install-extension vscodevim.vim
code --install-extension streetsidesoftware.code-spell-checker
#AppStore Apps
brew install mas
#guidance
mas install 412759995
#wunderlist
mas install 410628904
#onenote
mas install 784801555
#xcode
mas install 497799835
sudo xcodebuild -license
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment