My machine setup in MacOS Sierra and Linux Ubuntu
sudo defaults write /Library/Preferences/com.apple.alf globalstate -int 1
xcode-select --install
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew tap caskroom/cask
brew cask install dropbox
brew install mackup
mackup restore
brew install mas
mv ~/.oh-my-zsh ~/.oh-my-zsh.bkp
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
mv ~/.oh-my-zsh ~/.oh-my-zsh.bkp2
mv ~/.oh-my-zsh.bkp ~/.oh-my-zsh
vim ~/.zshrc
ZSH=$HOME/.oh-my-zsh
plugins=(git git-flow github node npm osx docker docker-compose brew)
source $ZSH/oh-my-zsh.sh
export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/usr/X11/bin
brew install \
tree \
node \
ssh-copy-id \
wget \
caskroom \
cask \
brew-cask
brew cask install \
sequel-pro \
tunnelblick \
docker \
boot2docker \
docker-toolbox \
kitematic \
firefox \
google-chrome \
itau \
postman \
spotify \
skype \
vagrant \
vagrant-manager \
virtualbox \
visual-studio-code \
vlc
defaults write NSGlobalDomain KeyRepeat -int 2
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
defaults write -g ApplePressAndHoldEnabled -bool false
defaults write NSGlobalDomain InitialKeyRepeat -int 12
defaults write com.apple.dashboard enabled-state 2
defaults write com.apple.TextEdit RichText -int 0
defaults write com.apple.dock wvous-tr-corner -int 5 && \
defaults write com.apple.dock wvous-tr-modifier -int 0
defaults write com.apple.finder NewWindowTarget -string "PfLo" && \
defaults write com.apple.finder NewWindowTargetPath -string "file://${HOME}"
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"
defaults write com.apple.finder ShowPathbar -bool true
defaults write com.apple.finder ShowStatusBar -bool true
defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true && \
defaults write com.apple.finder ShowHardDrivesOnDesktop -bool true && \
defaults write com.apple.finder ShowMountedServersOnDesktop -bool true && \
defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
defaults write com.apple.frameworks.diskimages skip-verify -bool true && \
defaults write com.apple.frameworks.diskimages skip-verify-locked -bool true && \
defaults write com.apple.frameworks.diskimages skip-verify-remote -bool true
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
defaults write com.apple.Safari IncludeInternalDebugMenu -bool true && \
defaults write com.apple.Safari IncludeDevelopMenu -bool true && \
defaults write com.apple.Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true && \
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled -bool true && \
defaults write NSGlobalDomain WebKitDeveloperExtras -bool true
chflags nohidden ~/Library
defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES
defaults write com.apple.QuickTimePlayerX MGPlayMovieOnOpen 1
defaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true
defaults write org.webkit.nightly.WebKit StartPageDisabled -bool true
ssh-keygen -t rsa -C "rafaelcg_stz@hotmail.com"
vim ~/.ssh/id_rsa.pub
ssh -T git@github.com
git config --global user.name "Rafael Corrêa Gomes"
git config --global user.email "rafaelcg_stz@hotmail.com"
git config --global github.user rafaelstz
#git config --global core.editor "subl -w"
git config --global color.ui true
git config --global push.default simple
git config --global github.token your_token_here
brew install diff-so-fancy
git config --global pager.diff "diff-so-fancy | less --tabs=4 -RFX" && \
git config --global pager.show "diff-so-fancy | less --tabs=4 -RFX"