-
-
Save cawa0505/3fb12a060861b1519e3f7127887db29e to your computer and use it in GitHub Desktop.
New Mac Setup Script
This file contains hidden or 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
brew tap homebrew/cask-fonts | |
brew cask install font-3270-nerd-font-mono | |
brew cask install font-firacode-nerd-font-mono | |
brew cask install font-cascadia-mono-pl | |
brew cask install font-jetbrains-mono |
This file contains hidden or 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
echo "Creating an SSH key for you..." | |
ssh-keygen -t rsa | |
echo "Please add this public key to Github \n" | |
echo "https://github.com/account/ssh \n" | |
read -p "Press [Enter] key after this..." | |
echo "Installing xcode-stuff" | |
xcode-select --install | |
# Check for Homebrew, | |
# Install if we don't have it | |
if test ! $(which brew); then | |
echo "Installing homebrew..." | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
fi | |
# Update homebrew recipes | |
echo "Updating homebrew..." | |
brew update | |
echo "Installing Git..." | |
brew install git | |
echo "Git config" | |
git config --global user.name "Jimmy Yen" | |
git config --global user.email [email protected] | |
echo "Installing brew git utilities..." | |
brew install git-extras | |
brew install legit | |
brew install git-flow | |
echo "Installing other brew stuff..." | |
brew install tree | |
brew install grc | |
brew install wget | |
brew install aria2 | |
#brew install trash | |
#brew install svn | |
brew install mackup | |
brew install node | |
brew install tmux | |
#@TODO install our custom fonts and stuff | |
echo "Cleaning up brew" | |
brew cleanup | |
echo "Installing homebrew cask" | |
brew install caskroom/cask/brew-cask | |
echo "Copying dotfiles from Github" | |
cd ~ | |
git clone [email protected]:bradp/dotfiles.git .dotfiles | |
cd .dotfiles | |
sh symdotfiles | |
echo "Grunting it up" | |
npm install -g grunt-cli | |
#Install Zsh & Oh My Zsh | |
echo "Installing Oh My ZSH..." | |
curl -L http://install.ohmyz.sh | sh | |
echo "Setting up Oh My Zsh theme..." | |
cd /Users/bradparbs/.oh-my-zsh/themes | |
curl https://gist.githubusercontent.com/bradp/a52fffd9cad1cd51edb7/raw/cb46de8e4c77beb7fad38c81dbddf531d9875c78/brad-muse.zsh-theme > brad-muse.zsh-theme | |
echo "Setting up Zsh plugins..." | |
cd ~/.oh-my-zsh/custom/plugins | |
git clone git://github.com/zsh-users/zsh-syntax-highlighting.git | |
echo "Setting ZSH as shell..." | |
chsh -s /bin/zsh |
This file contains hidden or 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
# https://hackmd.io/@PinLin/mbp | |
# MacBook Pro 配置筆記 | |
作業系統是 macOS 10.14 Mojave | |
###### tags: `配置筆記` `筆電` `Macbook Pro` | |
## 軟體管理工具 | |
### [Homebrew](https://brew.sh/index_zh-tw) | |
```bash | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
``` | |
> 隱含下面的指令 | |
> ```bash | |
> xcode-select --install | |
> ``` | |
### [mas-cli](https://github.com/mas-cli/mas) | |
```bash | |
brew install mas | |
``` | |
### [Steam](https://store.steampowered.com/) | |
```bash | |
brew cask install steam | |
``` | |
## 瀏覽網路資源 | |
### [Firefox Nightly](https://www.mozilla.org/zh-TW/firefox/channel/desktop/) | |
[下載連結](https://download.mozilla.org/?product=firefox-nightly-latest-l10n-ssl&os=osx&lang=zh-TW) | |
### [Firefox Developer Edition](https://www.mozilla.org/zh-TW/firefox/channel/desktop/) | |
[下載連結](https://download.mozilla.org/?product=firefox-devedition-latest-ssl&os=osx&lang=zh-TW) | |
### [Filezilla](https://filezilla-project.org/) | |
[下載頁面](https://filezilla-project.org/download.php?type=client) | |
### [PostMan](https://www.getpostman.com/) | |
```bash | |
brew cask install postman | |
``` | |
### [Wget](https://zh.wikipedia.org/zh-tw/Wget) | |
```bash | |
brew install wget | |
``` | |
### [aria2](https://github.com/aria2/aria2) | |
```bash | |
brew install aria2 | |
``` | |
## 雲端儲存空間 | |
### [Dropbox](https://www.dropbox.com/) | |
```bash | |
brew cask install dropbox | |
``` | |
### [Google 雲端串流](https://www.google.com/intl/zh-TW_ALL/drive/download/) | |
```bash | |
brew cask install google-drive-file-stream | |
``` | |
## 文字介面操作 | |
### [iTerm 2](https://www.iterm2.com/index.html) | |
```bash | |
brew cask install iterm2 | |
``` | |
> 1. Make iTerm2 Default Term | |
> 2. Install Shell Integration | |
> 3. [下載字型](https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/Meslo/S/Regular/complete/Meslo%20LG%20S%20Regular%20Nerd%20Font%20Complete.ttf)並安裝 | |
> 4. 設定檔在 `~/Dropbox/iTerm Settings` | |
### [Zsh](https://zh.wikipedia.org/zh-tw/Z_shell) | |
```bash | |
brew install zsh | |
``` | |
### [Oh My Zsh](http://ohmyz.sh/) | |
```bash | |
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
``` | |
### [Screen](https://zh.wikipedia.org/zh-tw/GNU_Screen) | |
```bash | |
brew install screen | |
``` | |
### [Tmux](https://zh.wikipedia.org/zh-tw/Tmux) | |
```bash | |
brew install tmux | |
``` | |
### [dotfiles](https://github.com/PinLin/dotfiles) | |
```bash | |
sh -c "$(curl -L https://raw.githubusercontent.com/PinLin/.shconf/v3.1/install.sh)" | |
``` | |
## 驗證機制設定 | |
### [1Password 6](https://1password.com/) | |
[下載連結](https://c.1password.com/dist/1P/mac4/1Password-6.8.9.pkg) | |
> 透過 Dropbox 同步密碼庫 | |
### [SSH](https://zh.wikipedia.org/zh-tw/Secure_Shell) | |
```bash | |
sudo systemsetup -setremotelogin on | |
``` | |
> 將下列設定放在 `~/.ssh/config` 裡 | |
> ```ssh | |
> Host * | |
> ServerAliveInterval 60 | |
> ``` | |
### [GPG](https://zh.wikipedia.org/zh-tw/GnuPG) | |
```bash | |
brew install gpg pinentry-mac | |
gpg --import ~/key_pub.gpg | |
gpg --allow-secret-key-import --import ~/key_sec.gpg | |
echo 'pinentry-program /usr/local/bin/pinentry-mac' >> ~/.gnupg/gpg-agent.conf | |
gpg-connect-agent reloadagent /bye | |
``` | |
## 開發環境建置 | |
### [Git](https://git-scm.com/) | |
```bash | |
brew install git | |
``` | |
```bash | |
git config --global user.name "Pin Lin" | |
git config --global user.email "[email protected]" | |
git config --global user.signingkey 59047A94 | |
git config --global color.ui auto | |
git config --global commit.gpgSign true | |
git config --global core.excludesfile "~/.gitignore_global" | |
git config --global core.quotepath false | |
git config --global core.editor vim | |
git config --global core.ignorecase false | |
git config --global alias.lg "log --color --graph --all --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --" | |
``` | |
> 將下列內容儲存至 `~/.gitignore_global` | |
> ```gitignore | |
> .DS_Store | |
> .DS_Store? | |
> *.swp | |
> ._* | |
> .Spotlight-V100 | |
> .Trashes | |
> Icon? | |
> ehthumbs.db | |
> Thumbs.db | |
> ``` | |
### [GitHub Desktop](https://desktop.github.com/) | |
```bash | |
brew cask install github | |
``` | |
### [SourceTree](https://www.sourcetreeapp.com/) | |
```bash | |
brew cask install sourcetree | |
``` | |
### [pyenv](https://github.com/pyenv/pyenv) | |
```bash | |
brew install openssl readline sqlite3 xz zlib | |
brew install pyenv pyenv-virtualenv | |
``` | |
> 如果是 macOS 10.14+ 額外需要 | |
> ```bash | |
> sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target / | |
> ``` | |
### [Python](https://www.python.org) | |
by [`pyenv`](#pyenv) | |
```bash | |
pyenv install 3.6.5 | |
pyenv global 3.6.5 | |
``` | |
by installer | |
[下載連結](https://www.python.org/ftp/python/3.6.5/python-3.6.5-macosx10.9.pkg) | |
### [Poetry](https://poetry.eustace.io/) | |
```bash | |
curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python | |
``` | |
### [nvm](https://github.com/creationix/nvm) | |
```bash | |
brew install nvm | |
``` | |
### [Node.js](https://nodejs.org/) | |
by [`nvm`](#nvm) | |
```bash | |
nvm install 12.13.0 | |
nvm use 12.13.0 | |
nvm alias default 12.13.0 | |
``` | |
by installer | |
[下載連結](https://nodejs.org/download/release/v12.13.0/node-v12.13.0.pkg) | |
### [Yarn](https://yarnpkg.com/zh-Hant/) | |
```bash | |
npm install -g yarn | |
``` | |
### [AdoptOpenJDK](AdoptOpenJDK) | |
```bash | |
brew cask install adoptopenjdk | |
``` | |
### [gvm](https://github.com/moovweb/gvm) | |
```bash | |
zsh < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer) | |
``` | |
### [Go](https://golang.org/) | |
```bash | |
gvm install go1.12 --binary | |
``` | |
### [Bot Framework Emulator](https://github.com/Microsoft/BotFramework-Emulator) | |
```bash | |
brew cask install bot-framework-emulator | |
``` | |
## 程式碼編輯器 | |
### [Visual Studio Code](https://code.visualstudio.com) | |
```bash | |
brew cask install visual-studio-code | |
``` | |
> 透過 [Setting Sync](https://marketplace.visualstudio.com/items?itemName=Shan.code-settings-sync) 來同步 | |
### [Sublime Text 3](https://www.sublimetext.com/3) | |
```bash | |
brew cask install sublime-text | |
``` | |
### [Typora](https://typora.io) | |
```bash | |
brew cask install typora | |
``` | |
### [Vim](https://zh.wikipedia.org/zh-tw/vim) | |
```bash | |
brew install vim | |
``` | |
## 架設對外服務 | |
### [Nginx](https://zh.wikipedia.org/zh-tw/Nginx) | |
```bash | |
brew tap denji/nginx | |
brew install nginx-full --with-headers-more-module --with-http2 | |
``` | |
## 整合開發環境 | |
### [Xcode](https://developer.apple.com/xcode/) | |
```bash | |
mas install 497799835 | |
``` | |
### [Android Studio](https://developer.android.com/studio/) | |
```bash | |
brew cask install android-studio | |
``` | |
## 文書處理套裝 | |
### [LibreOffice](https://zh-tw.libreoffice.org/) | |
```bash | |
brew cask install libreoffice | |
``` | |
> 1. 下載語言包 | |
> 2. 切換語言、地區至繁體中文、台灣 | |
### [iWork](https://www.apple.com/tw/iwork/) | |
#### Pages | |
```bash | |
mas install 409201541 | |
``` | |
#### Numbers | |
```bash | |
mas install 409203825 | |
``` | |
#### Keynote | |
```bash | |
mas install 409183694 | |
``` | |
## 即時通訊軟體 | |
### [Telegram Desktop](https://t.me/) | |
```bash | |
brew cask install telegram-desktop | |
``` | |
### [Line](https://line.me/) | |
```bash | |
mas install 539883307 | |
``` | |
### [iota](https://www.gss.com.tw/images/stories/eispage/vol82/pdf/EIS82-p26-iota.pdf) | |
[下載頁面](https://im.gss.com.tw/) | |
## 遠端連線控制 | |
### [Teamviewer](https://www.teamviewer.com/zhtw/) | |
```bash | |
brew cask install teamviewer | |
``` | |
### [AnyDesk](https://anydesk.com) | |
```bash | |
brew cask install anydesk | |
``` | |
### [Microsoft Remote Desktop](https://support.microsoft.com/zh-tw/help/4028379/windows-10-how-to-use-remote-desktop) | |
```bash | |
mas install 1295203466 | |
``` | |
### [Mosh](https://mosh.org/) | |
```bash | |
brew install mosh | |
``` | |
> 可能需要設定終端機預設編碼 | |
> ```bash | |
> echo '\nexport LC_ALL="zh_TW.UTF-8"' >> ~/.zshrc | |
> ``` | |
## 虛擬化的技術 | |
### [Parallels Desktop](https://www.parallels.com/hk/) | |
```bash | |
brew cask install parallels | |
``` | |
### [VMware Fusion](https://www.vmware.com/tw/products/fusion.html) | |
```bash | |
brew cask install vmware-fusion | |
``` | |
### [VMware Horizon Client](https://my.vmware.com/web/vmware/info?slug=desktop_end_user_computing/vmware_horizon_clients/4_0) | |
```bash | |
brew cask install vmware-horizon-client | |
``` | |
### [VirtualBox](https://www.virtualbox.org/) | |
```bash | |
brew cask install virtualbox virtualbox-extension-pack | |
``` | |
### [Bluestacks](https://www.bluestacks.com/) | |
```bash | |
brew cask install bluestacks | |
``` | |
### [Docker](https://www.docker.com/) | |
```bash | |
brew cask install docker | |
``` | |
## 系統管理工具 | |
### [Parallels Toolbox](https://www.parallels.com/products/toolbox/) | |
[下載連結](https://download.parallels.com/toolbox/v2/2.0.4-1219/ParallelsToolbox-2.0.4-1219.dmg) | |
### [iStat Menus](https://bjango.com/mac/istatmenus/) | |
```bash | |
brew cask install istat-menus | |
``` | |
> 設定(2018/01/08)放在 1Password 裡 | |
### [Background Music](https://github.com/kyleneideck/BackgroundMusic) | |
```bash | |
brew cask install background-music | |
``` | |
### [htop](https://zh.wikipedia.org/zh-tw/Htop) | |
```bash | |
brew install htop | |
``` | |
## 網路問題除錯 | |
### [Charles](https://www.charlesproxy.com/) | |
```bash | |
brew cask install charles | |
``` | |
### [netcat](https://zh.wikipedia.org/zh-tw/Netcat) | |
```bash | |
brew install netcat | |
``` | |
### [socat](https://en.wikipedia.org/wiki/Netcat#Ports_and_reimplementations) | |
```bash | |
brew install socat | |
``` | |
### [Nmap](https://zh.wikipedia.org/zh-tw/Nmap) | |
```bash | |
brew install nmap | |
``` | |
### [Wakeonlan](https://web.archive.org/web/20060924100914/http://gsd.di.uminho.pt/jpo/software/wakeonlan/) | |
```bash | |
brew install wakeonlan | |
``` | |
## 串流音樂平台 | |
### [Spotify](https://www.spotify.com/tw/) | |
```bash | |
brew cask install spotify spotify-notifications | |
``` | |
## 簡易繪圖工具 | |
### [Paintbrush](https://paintbrush.sourceforge.io/) | |
```bash | |
brew cask install paintbrush | |
``` | |
## 資料庫的軟體 | |
### [MariaDB](https://zh.wikipedia.org/zh-tw/MariaDB) | |
```bash | |
brew install mariadb | |
``` | |
### [MongoDB](https://zh.wikipedia.org/zh-tw/MongoDB) | |
```bash | |
brew tap mongodb/brew | |
brew install [email protected] | |
``` | |
### [mycli](https://github.com/dbcli/mycli) | |
```bash | |
brew install mycli | |
``` | |
### [pgcli](https://github.com/dbcli/pgcli) | |
```bash | |
brew tap dbcli/tap | |
brew install pgcli | |
``` | |
### [litecli](https://github.com/dbcli/litecli) | |
```bash | |
brew tap dbcli/tap | |
brew install litecli | |
``` | |
### [DBeaver](https://dbeaver.io/) | |
```bash | |
brew cask install dbeaver-community | |
``` | |
### [Robo 3T](https://robomongo.org/) | |
```bash | |
brew cask install robo-3t | |
``` | |
## 壓縮與解壓縮 | |
### [Keka](https://www.keka.io/en/) | |
```bash | |
brew cask install keka | |
``` | |
## 生產力小工具 | |
### [Spark](https://sparkmailapp.com/) | |
```bash | |
mas install 1176895641 | |
``` | |
### [Magnet](http://magnet.crowdcafe.com/) | |
```bash | |
mas install 441258766 | |
``` | |
### [Alfred](https://www.alfredapp.com/) | |
```bash | |
brew cask install alfred | |
``` | |
> 把 Spotlight 快捷鍵改成 ⌘⇧ Space | |
## 快速檢視套件 | |
### [QLColorCode](https://github.com/anthonygelibert/QLColorCode) | |
```bash | |
brew cask install qlcolorcode | |
``` | |
### [qlstephen](https://github.com/whomwah/qlstephen) | |
```bash | |
brew cask install qlstephen | |
``` | |
### [qlImageSize](https://github.com/Nyx0uf/qlImageSize) | |
```bash | |
brew cask install qlimagesize | |
``` | |
### [webp-quicklook](https://github.com/dchest/webp-quicklook) | |
```bash | |
brew cask install webpquicklook | |
``` |
This file contains hidden or 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
# Apps | |
apps=( | |
alfred | |
bartender | |
# bettertouchtool | |
# cleanmymac | |
# colloquy | |
cornerstone | |
diffmerge | |
dropbox | |
# filezilla | |
figma | |
fork | |
firefox | |
google-chrome | |
# harvest | |
# hipchat | |
licecap | |
# mou | |
microsoft-office | |
# phpstorm | |
private-internet-access | |
# razer-synapse | |
sourcetree | |
spectacle | |
# steam | |
spotify | |
vagrant | |
iterm2 | |
# sublime-text2 | |
visual-studio-code | |
# textexpander | |
virtualbox | |
# mailbox | |
megasync | |
vlc | |
# skype | |
transmission | |
# zoomus | |
# onepassword | |
# sequel-pro | |
mkchromecast | |
now | |
qlmarkdown | |
qlstephen | |
suspicious-package | |
) | |
# Install apps to /Applications | |
# Default is: /Users/$user/Applications | |
echo "installing apps with Cask..." | |
brew cask install --appdir="/Applications" ${apps[@]} | |
#brew cask alfred link | |
#brew cask cleanup | |
brew cleanup | |
#echo "Please setup and sync Dropbox, and then run this script again." | |
#read -p "Press [Enter] key after this..." | |
#echo "Restoring setup from Mackup..." | |
#mackup restore @TODO uncomment | |
echo "Setting some Mac settings..." | |
#"Disabling system-wide resume" | |
defaults write NSGlobalDomain NSQuitAlwaysKeepsWindows -bool false | |
#"Disabling automatic termination of inactive apps" | |
defaults write NSGlobalDomain NSDisableAutomaticTermination -bool true | |
#"Allow text selection in Quick Look" | |
defaults write com.apple.finder QLEnableTextSelection -bool TRUE | |
#"Disabling OS X Gate Keeper" | |
#"(You'll be able to install any app you want from here on, not just Mac App Store apps)" | |
sudo spctl --master-disable | |
sudo defaults write /var/db/SystemPolicy-prefs.plist enabled -string no | |
defaults write com.apple.LaunchServices LSQuarantine -bool false | |
#"Expanding the save panel by default" | |
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true | |
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true | |
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint2 -bool true | |
#"Automatically quit printer app once the print jobs complete" | |
defaults write com.apple.print.PrintingPrefs "Quit When Finished" -bool true | |
#"Saving to disk (not to iCloud) by default" | |
defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false | |
#"Check for software updates daily, not just once per week" | |
defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1 | |
#"Disable smart quotes and smart dashes as they are annoying when typing code" | |
defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false | |
defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false | |
#"Enabling full keyboard access for all controls (e.g. enable Tab in modal dialogs)" | |
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3 | |
#"Disabling press-and-hold for keys in favor of a key repeat" | |
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false | |
#"Setting trackpad & mouse speed to a reasonable number" | |
defaults write -g com.apple.trackpad.scaling 2 | |
defaults write -g com.apple.mouse.scaling 2.5 | |
#"Enabling subpixel font rendering on non-Apple LCDs" | |
defaults write NSGlobalDomain AppleFontSmoothing -int 2 | |
#"Showing icons for hard drives, servers, and removable media on the desktop" | |
defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true | |
#"Showing all filename extensions in Finder by default" | |
defaults write NSGlobalDomain AppleShowAllExtensions -bool true | |
#"Disabling the warning when changing a file extension" | |
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false | |
#"Use column view in all Finder windows by default" | |
defaults write com.apple.finder FXPreferredViewStyle Clmv | |
#"Avoiding the creation of .DS_Store files on network volumes" | |
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true | |
#"Enabling snap-to-grid for icons on the desktop and in other icon views" | |
/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist | |
/usr/libexec/PlistBuddy -c "Set :FK_StandardViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist | |
/usr/libexec/PlistBuddy -c "Set :StandardViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist | |
#"Setting the icon size of Dock items to 36 pixels for optimal size/screen-realestate" | |
defaults write com.apple.dock tilesize -int 36 | |
#"Speeding up Mission Control animations and grouping windows by application" | |
defaults write com.apple.dock expose-animation-duration -float 0.1 | |
defaults write com.apple.dock "expose-group-by-app" -bool true | |
#"Setting Dock to auto-hide and removing the auto-hiding 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 show-recents -bool false | |
#"Setting email addresses to copy as '[email protected]' instead of 'Foo Bar <[email protected]>' in Mail.app" | |
defaults write com.apple.mail AddressesIncludeNameOnPasteboard -bool false | |
#"Enabling UTF-8 ONLY in Terminal.app and setting the Pro theme by default" | |
defaults write com.apple.terminal StringEncodings -array 4 | |
defaults write com.apple.Terminal "Default Window Settings" -string "Pro" | |
defaults write com.apple.Terminal "Startup Window Settings" -string "Pro" | |
#"Preventing Time Machine from prompting to use new hard drives as backup volume" | |
defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true | |
#"Disable the sudden motion sensor as its not useful for SSDs" | |
sudo pmset -a sms 0 | |
#"Speeding up wake from sleep to 24 hours from an hour" | |
# http://www.cultofmac.com/221392/quick-hack-speeds-up-retina-macbooks-wake-from-sleep-os-x-tips/ | |
sudo pmset -a standbydelay 86400 | |
#"Disable annoying backswipe in Chrome" | |
defaults write com.google.Chrome AppleEnableSwipeNavigateWithScrolls -bool false | |
#"Setting screenshots location to ~/Desktop" | |
defaults write com.apple.screencapture location -string "$HOME/Desktop" | |
#"Setting screenshot format to PNG" | |
defaults write com.apple.screencapture type -string "png" | |
#"Hiding Safari's bookmarks bar by default" | |
defaults write com.apple.Safari ShowFavoritesBar -bool false | |
#"Hiding Safari's sidebar in Top Sites" | |
defaults write com.apple.Safari ShowSidebarInTopSites -bool false | |
#"Disabling Safari's thumbnail cache for History and Top Sites" | |
defaults write com.apple.Safari DebugSnapshotsUpdatePolicy -int 2 | |
#"Enabling Safari's debug menu" | |
defaults write com.apple.Safari IncludeInternalDebugMenu -bool true | |
#"Making Safari's search banners default to Contains instead of Starts With" | |
defaults write com.apple.Safari FindOnPageMatchesWordStartsOnly -bool false | |
#"Removing useless icons from Safari's bookmarks bar" | |
defaults write com.apple.Safari ProxiesInBookmarksBar "()" | |
#"Allow hitting the Backspace key to go to the previous page in history" | |
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2BackspaceKeyNavigationEnabled -bool true | |
#"Enabling the Develop menu and the Web Inspector in Safari" | |
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 | |
#"Adding a context menu item for showing the Web Inspector in web views" | |
defaults write NSGlobalDomain WebKitDeveloperExtras -bool true | |
#"Use `~/Downloads/Incomplete` to store incomplete downloads" | |
defaults write org.m0k.transmission UseIncompleteDownloadFolder -bool true | |
defaults write org.m0k.transmission IncompleteDownloadFolder -string "${HOME}/Downloads/Incomplete" | |
#"Don't prompt for confirmation before downloading" | |
defaults write org.m0k.transmission DownloadAsk -bool false | |
#"Trash original torrent files" | |
defaults write org.m0k.transmission DeleteOriginalTorrent -bool true | |
#"Hide the donate message" | |
defaults write org.m0k.transmission WarningDonate -bool false | |
#"Hide the legal disclaimer" | |
defaults write org.m0k.transmission WarningLegal -bool false | |
#"Disable 'natural' (Lion-style) scrolling" | |
defaults write NSGlobalDomain com.apple.swipescrolldirection -bool false | |
# Don’t automatically rearrange Spaces based on most recent use | |
defaults write com.apple.dock mru-spaces -bool false | |
defaults write com.apple.dock ResetLaunchPad -bool true | |
killall Dock | |
killall Finder | |
echo "Done!" | |
#@TODO install vagrant and sites folder |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment