Skip to content

Instantly share code, notes, and snippets.

@rokerkony
Created December 14, 2016 10:41
Show Gist options
  • Save rokerkony/20d9748f4bcc5b41dd923b6b9fb78f27 to your computer and use it in GitHub Desktop.
Save rokerkony/20d9748f4bcc5b41dd923b6b9fb78f27 to your computer and use it in GitHub Desktop.
Mac OS, brew, cask, settings installation
#!/bin/bash
# add mac settings:
echo "Auto hide dock without delay"
defaults write com.apple.dock autohide -bool true && \
defaults write com.apple.dock autohide-delay -float 0 && \
defaults write com.apple.dock autohide-time-modifier -float 0 && \
defaults write com.apple.dock largesize -int 38 && \
defaults write com.apple.dock magnification -bool true && \
defaults write com.apple.dock tilesize -int 27 && \
killall Dock
echo "Set login screen message"
sudo defaults write /Library/Preferences/com.apple.loginwindow LoginwindowText 'Ahoj .. Hi .. Cześć\n\nHave a nice day!'
echo "Open tabs not windows"
defaults write NSGlobalDomain AppleWindowTabbingMode -string 'always'
echo "fast "
defaults write NSGlobalDomain com.apple.trackpad.scaling -float 2.5
echo "Show hidden files in Finder"
defaults write com.apple.finder AppleShowAllFiles -bool true
echo "Clean all the icons in dock"
defaults write com.apple.dock persistent-apps -array
echo "Disable screensaver"
defaults -currentHost write com.apple.screensaver idleTime -int 0
echo "Show dashboard"
defaults write com.apple.dashboard enabled-state -int 1
defaults write com.apple.dock dashboard-in-overlay -bool true && killall Dock
echo "Show digital time"
defaults write com.apple.menuextra.clock IsAnalog -bool false
defaults write com.apple.menuextra.battery -bool true
echo "Disable the 'Are you sure you want to open this application?' dialog"
defaults write com.apple.LaunchServices LSQuarantine -bool false
echo "Allow applications downloaded from anywhere"
spctl --master-disable
echo "Disable hard disk sleep"
sudo pmset -a disksleep 0
echo "Disable hibernation (speeds up entering sleep mode)"
sudo pmset -a hibernatemode 0
#echo "Disable press-and-hold for keys in favor of key repeat"
#defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
echo "Show desktop when mouse hit to right top corner"
defaults write com.apple.dock wvous-tr-corner -int 4
echo "Ask for password without delay"
defaults write com.apple.screensaver askForPassword -bool true
defaults write com.apple.screensaver askForPasswordDelay -int 0
# Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# clean homebrew
brew cleanup
brew cask cleanup
brew update
# install brew dependencies
brew install zsh zsh-completions
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
brew install curl
brew install go
brew install openssl
brew install phantomjs
brew install wget
brew install sqlite
brew install zsh
brew install kubernetes-cli
brew install node6-lts
brew install yarn
brew install homebrew/php/php70
brew install homebrew/php/composer
# install cask
brew tap caskroom/cask
brew tap caskroom/versions
# install cask dependencies
brew cask install alfred
brew cask install vlc
brew cask install 1password
brew cask install iterm2
brew cask install skype
brew cask install slack
brew cask install spotify
brew cask install sublime-text2
brew cask install firefox
brew cask install google-chrome
brew cask install google-chrome-canary
brew cask install spectacle
brew cask install vagrant
brew cask install virtualbox
brew cask install tunnelblick
brew cask install webstorm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment