Last active
August 16, 2017 08:46
-
-
Save fabienheureux/62ab95da6411df779ca7ff0f03de1efe to your computer and use it in GitHub Desktop.
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/sh | |
########### | |
# basic # | |
########### | |
# homebrew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew tap caskroom/versions | |
brew install brew-cask | |
# git | |
brew install git | |
[[ -f ~/.ssh/id_rsa.pub ]] || ssh-keygen -t rsa | |
[[ -f ~/.ssh/id_rsa.pub ]] && cat ~/.ssh/id_rsa.pub | pbcopy | |
open https://github.com/account/ssh | |
ssh -T git@github.com | |
# messy brew | |
brew install git-extras | |
brew install wget | |
brew install ffmpeg | |
brew install go | |
brew install mplayer | |
brew install tmux | |
brew install youtube-dl | |
brew install pandoc | |
brew install postgresql | |
brew install zsh | |
brew install asciinema | |
brew install the_silver_searcher | |
# Updated curl | |
brew install curl | |
brew link curl --force | |
############### | |
# languages # | |
############### | |
# Updated python/pip | |
brew install python | |
pip install --upgrade setuptools | |
pip install --upgrade pip | |
# node | |
brew install node | |
brew install nodemon | |
brew install yarn | |
npm i -g gulp eslint | |
# ruby | |
brew install ruby | |
########## | |
# apps # | |
########## | |
# cask | |
brew cask install 1password dropbox docker iterm2-beta google-chrome firefox virtualbox slack appcleaner duet postman entropy fantastical kap mactracker spark spectacle spotify teamviewer torbrowser viscosity vlc | |
# cask quick look plugins (https://github.com/sindresorhus/quick-look-plugins) | |
brew cask install qlcolorcode qlstephen qlmarkdown quicklook-json qlprettypatch quicklook-csv betterzipql suspicious-package | |
# Install GNU core utilities (those that come with OS X are outdated) | |
brew install coreutils | |
# mackup | |
brew install mackup | |
mackup restore | |
########### | |
# shell # | |
########### | |
# fzf | |
brew install fzf | |
/usr/local/opt/fzf/install | |
# z | |
brew install z | |
# Vim & code fonts | |
brew install vim --with-override-system-vi | |
brew install macvim | |
brew install editorconfig | |
brew install --HEAD universal-ctags | |
brew tap caskroom/fonts | |
brew cask install font-fira-code | |
# setup | |
cd ~ && git clone https://github.com/chriskempson/base16-iterm2.git | |
cd base16-iterm2 && open * && cd ~ && rm -rf ~/base16-iterm2 | |
# fish | |
brew install fish | |
brew tap fisherman/tap | |
brew install fisherman | |
sudo chsh -s $(which fish) $(whoami) | |
fisher z fzf edc/bass brandonweiss/pure.fish nvm fnm | |
git clone https://github.com/chriskempson/base16-shell.git ~/.config/base16-shell | |
############### | |
# databases # | |
############### | |
# mongodb | |
# brew install mongodb | |
# brew services start mongodb | |
########### | |
# macOS # | |
########### | |
# Folders | |
mkdir ~/Development | |
mkdir ~/Development/Clients | |
# dock | |
brew install dockutil | |
dockutil --remove all | |
# hardware | |
defaults write -g KeyRepeat -int 0.02 | |
npm i -g lock-cli | |
# Trackpad: enable 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 | |
# Trackpad: map bottom right corner to right-click | |
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadCornerSecondaryClick -int 2 | |
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadRightClick -bool true | |
defaults -currentHost write NSGlobalDomain com.apple.trackpad.trackpadCornerClickBehavior -int 1 | |
defaults -currentHost write NSGlobalDomain com.apple.trackpad.enableSecondaryClick -bool true | |
# Increase sound quality for Bluetooth headphones/headsets | |
defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Min (editable)" -int 40 | |
# Use scroll gesture with the Ctrl (^) modifier key to zoom | |
defaults write com.apple.universalaccess closeViewScrollWheelToggle -bool true | |
defaults write com.apple.universalaccess HIDScrollZoomModifierMask -int 262144 | |
# Follow the keyboard focus while zoomed in | |
defaults write com.apple.universalaccess closeViewZoomFollowsFocus -bool true | |
# Set a blazingly fast keyboard repeat rate | |
defaults write NSGlobalDomain KeyRepeat -int 1 | |
defaults write NSGlobalDomain InitialKeyRepeat -int 10 | |
# Show language menu in the top right corner of the boot screen | |
sudo defaults write /Library/Preferences/com.apple.loginwindow showInputMenu -bool true | |
# Finder: show all filename extensions | |
defaults write NSGlobalDomain AppleShowAllExtensions -bool true | |
# When performing a search, search the current folder by default | |
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf" | |
# Disable the warning when changing a file extension | |
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false | |
# Enable spring loading for directories | |
defaults write NSGlobalDomain com.apple.springing.enabled -bool true | |
# Remove the spring loading delay for directories | |
defaults write NSGlobalDomain com.apple.springing.delay -float 0 | |
# Avoid creating .DS_Store files on network or USB volumes | |
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true | |
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true | |
# Automatically open a new Finder window when a volume is mounted | |
defaults write com.apple.frameworks.diskimages auto-open-ro-root -bool true | |
defaults write com.apple.frameworks.diskimages auto-open-rw-root -bool true | |
defaults write com.apple.finder OpenWindowForNewRemovableDisk -bool true | |
# Use list view in all Finder windows by default | |
# Four-letter codes for the other view modes: `icnv`, `clmv`, `Flwv` | |
defaults write com.apple.finder FXPreferredViewStyle -string "Nlsv" | |
# Disable the warning before emptying the Trash | |
defaults write com.apple.finder WarnOnEmptyTrash -bool false | |
# Enable AirDrop over Ethernet and on unsupported Macs running Lion | |
defaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true | |
# Show the ~/Library folder | |
chflags nohidden ~/Library | |
# Show the /Volumes folder | |
sudo chflags nohidden /Volumes | |
# Disable Dashboard | |
defaults write com.apple.dashboard mcx-disabled -bool true | |
# Don’t show Dashboard as a Space | |
defaults write com.apple.dock dashboard-in-overlay -bool true | |
# Don’t automatically rearrange Spaces based on most recent use | |
defaults write com.apple.dock mru-spaces -bool false | |
# Automatically hide and show the Dock | |
defaults write com.apple.dock autohide -bool true | |
# Make Dock icons of hidden applications translucent | |
defaults write com.apple.dock showhidden -bool true | |
# Top left screen corner → Mission Control | |
defaults write com.apple.dock wvous-tl-corner -int 10 | |
defaults write com.apple.dock wvous-tl-modifier -int 0 | |
# Top right screen corner → Desktop | |
defaults write com.apple.dock wvous-tr-corner -int 2 | |
defaults write com.apple.dock wvous-tr-modifier -int 0 | |
# Bottom left screen corner → Start screen saver | |
defaults write com.apple.dock wvous-bl-corner -int 4 | |
defaults write com.apple.dock wvous-bl-modifier -int 0 | |
############## | |
# external # | |
############## | |
brew install heroku | |
brew install awscli | |
##### todo | |
# https://stackoverflow.com/a/26321141 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment