Skip to content

Instantly share code, notes, and snippets.

@filippofilip95
Last active November 22, 2022 07:38
Show Gist options
  • Save filippofilip95/9b9ad4d00ef600e0e177ae573f6a57f7 to your computer and use it in GitHub Desktop.
Save filippofilip95/9b9ad4d00ef600e0e177ae573f6a57f7 to your computer and use it in GitHub Desktop.
OSX shell script to setup basic stuff and install apps. It's usually usable after clean install of OSX system.
#!/bin/bash
echo "This script will setup OSX"
echo 'It will:'
echo ' - edit system settings'
echo ' - install apps'
echo ' - add aliases'
read -p "Do you want to continue (y/n)?" -n 1 -r
if [[ $REPLY =~ ^[Yy]$ ]]
then
echo ''
echo "Keyboard: setting key repeats to faster"
defaults write -g InitialKeyRepeat -int 10 # normal minimum is 15 (225 ms)
defaults write -g KeyRepeat -int 1 # normal minimum is 2 (30 ms)
echo "Trackpad: enabling tap to click for this user and for the login screen"
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true
defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
defaults write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
echo "Dock: Set the icon size of Dock items to 36 pixels and dock orientation to the left"
defaults write com.apple.dock tilesize -int 36
defaults write com.apple.dock orientation -string left
echo "Mission Control: Speeding up Mission Control animations"
defaults write com.apple.dock expose-animation-duration -float 0.1
echo "Installing Homebrew"
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
echo "Addig Homebrew tap cask versions"
brew tap homebrew/cask-versions
echo "Installing global Homebrew packages"
brew install git
brew install mas
#brew install wget
#brew install pkg-config
#brew install exiftool
#brew install imagemagick
brew install node
#brew install cocoapods
#brew install composer
#brew install postgres
#brew install httpd
#brew install php
#brew install php@7.2
#brew install watchman
#install npm packages
#npm install -g react-native-cli
echo "Installing computer applications"
brew install google-chrome --cask
brew install firefox-developer-edition --cask
brew install postman --cask
brew install slack --cask
#brew install firefox --cask
#brew install google-chrome-canary --cask
#brew install cyberduck --cask
#brew install adobe-creative-cloud --cask
#brew install phpstorm --cask
brew install webstorm --cask
brew install devutils
#brew install sublime-text --cask
brew install spotify --cask
brew install visual-studio-code --cask
#brew install karabiner-elements --cask
brew install google-backup-and-sync --cask
#brew install macs-fan-control --cask
brew install enpass --cask
brew install iterm2 --cask
brew install docker --cask
brew install java --cask
brew install spectacle --cask
#brew install keka --cask
#brew install android-studio --cask
#brew install vlc --cask
#brew install CheatSheet --cask
brew install daisydisk --cask
# https://spin.atomicobject.com/2020/05/05/git-configurations-default/
echo "Setting up usefull git globals"
git config --global pull.rebase true
git config --global fetch.prune true
git config --global diff.colorMoved zebra
echo "Installing xcode"
mas install 497799835
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment