- all items marked with an
*are optional
Open Terminal or iTerm and run the following commands
Let's get the system ready by installing Xcode Command Line Tools and Homebrew.
xcode-select --installruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"Install Git (will use zsh git completions)
brew install git --without-completionsInstall wget
brew install wgetInstall ruby-build and rbenv
brew install ruby-build rbenvInstall yarn
brew install yarn --without-node*Install Heroku Command Line Interface (CLI)
brew install heroku/brew/herokuKeep Homebrew packages up-to-date
brew updateUpdated formulas after running
brew update?brew upgradeIssues with Homebrew?
brew doctorFor more information on Homebrew, check out brew.sh
Install Oh My ZSH!
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"Install zsh completions
brew install zsh-completionsFor more information on Oh My ZSH!, check out ohmyz.sh
Install nvm via Oh My ZSH! custom plugin
git clone https://github.com/lukechilds/zsh-nvm ~/.oh-my-zsh/custom/plugins/zsh-nvmInstall bundler-exec plugin
Automatically run Ruby scripts with "bundle exec" (but only when appropriate)
curl -L https://github.com/gma/bundler-exec/raw/master/bundler-exec.sh > ~/.bundler-exec.shrm -rf ~/.zshrc; curl -L https://raw.githubusercontent.com/phritolay/macos-development-setup/master/Users/user-name/.zshrc > ~/.zshrcCheck for existing SSH keys
ls -al ~/.sshLists the files in your .ssh directory, if they exist Check the directory listing to see if you already have a public SSH key (e.g. id_rsa.pub)
If you don't have an existing public and private key pair, then generate a new SSH key
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"When you're prompted to "Enter a file in which to save the key," press Enter. This accepts the default file location. At the prompt, type a secure passphrase. For more information, check out Working with SSH key passphrases.
Adding your SSH key to the ssh-agent
1 - Start the ssh-agent in the background
eval "$(ssh-agent -s)"2 - If you're using macOS Sierra 10.12.2 or later, you will need to add a
~/.ssh/configfile to automatically load keys into the ssh-agent and store passphrases in your keychain.curl -L https://raw.githubusercontent.com/phritolay/macos-development-setup/master/Users/user-name/.ssh/config > ~/.ssh/config3 - Add your SSH private key to the ssh-agent and store your passphrase in the keychain.
ssh-add -K ~/.ssh/id_rsa4 - Add a SSH key to your GitHub account
Copy the SSH key to your clipboard.
pbcopy < ~/.ssh/id_rsa.pubGo to GitHub Settings and click on the
New SSH keybutton and paste your key into the "Key" field.
For more information, check out Connecting to GitHub with SSH
-
Download and install Atom
-
Open Atom and install Shell Commands
-
Open Atom's settings
cmd+,
-
Go to the Install section, search for sync-settings and install
-
After sync-settings has been installed, click the settings
-
Enter your Github Personal access token and the following Gist ID
86842ced79bac5412514590e3b2456db
If you do not have a Personal access token you can create one on GitHub.
-
In Atom open the command palette with
cmd+shift+pand type "Sync Settings: restore"
-
Open Atom's settings
cmd+,
-
Go to Core, scroll down to Project Home and change /Users/{user-name}/Projects to the location of your repos.
It's a good idea to keep all your projects in on place. Not on the Desktop ;-)
-
Go to Packages, search for linter-haml and click on settings
Change the Executable Path to your haml-lint shim path e.g. /Users/{user-name}/.rbenv/shims/haml-lint
Open terminal with
cmd+~and run the following command to find your haml-lint shimwhich haml-lint
-
Go to Packages, search for linter-rubocop and click on settings
Change the Command setting to your rubocop shim path e.g. /Users/{user-name}/.rbenv/shims/rubocop
Open terminal with
cmd+~and run the following command to find your rubocop shimwhich rubocop
| Category | Command | Shortcut |
|---|---|---|
| General | ||
| Toggle command palette | cmd+shift+p |
|
| Settings | ctrl+, |
|
| Toggle bottom dock | ctrl+b |
|
| Projects | ||
| List projects | alt+cmd+o |
|
| Terminal | ||
| Toggle terminal | cmd+~ |
|
| New terminal window | shift+cmd+t |
|
| Next terminal window | shift+cmd+k |
|
| Previous terminal window | shift+cmd+j |
|
| Find | ||
| Find in file | cmd+f |
|
| Find in project | cmd+shift-f |
|
| Find next | cmd+g |
|
| View / Window Manipulation | ||
| Toggle tree-view sidebar | cmd+backslash |
|
| Toggle fullscreen | cmd+ctrl+f |
|
| Move file to left pane | cmd+k left |
|
| Move file to right pane | cmd+k right |
|
| File Navigation | ||
| Toggle file finder | cmd+p |
|
| Go to line | ctrl+g |
|
| Go to symbol | cmd+r |
|
| Move to beginning of file | cmd+arrow up |
|
| Move to end of file | cmd+arrow down |
|
| Next file | cmd+shift+} |
|
| Previous file | cmd+shift+{ |
|
| Git Integration | ||
| Git status list | cmd+shift+b |
|
| Toggle GitHub sidebar | ctrl+g |
|
| Git Plus menu | cmd+shift+h |
|
| Move to next diff | alt+g+arrow down |
|
| Move to previous diff | alt+g+arrow up |
|
| Open on GitHub: History | alt+g+h |
|
| Folding | ||
| Fold current code block | cmd+alt+[ |
|
| Unfold current code block | cmd+alt+] |
|
| Unfold all code blocks | cmd+alt+shift+] |
|
| Line Manipulation | ||
| Indent current line | cmd+] |
|
| Outdent current line | cmd+[ |
|
| Move to the end of line | cmd+arrow left |
|
| Move to the beginning of line | cmd+arrow right |
|
| Comment line or selection | cmd+forwardslash |
|
| Selection | ||
| Select current word/token | cmd_d |
|
| Select current line | cmd+l |
|
| Select to first character of line | shift-alt+arrow left |
|
| Select to last character of line | shift-alt+arrow right |
|
| Select 1 character at a time | shift+arrow left or shift+arrow right |
|
| Convert to lowercase | cmd+k cmd+l |
|
| Sorting | ||
| Sort lines alphabetically | alt+k |
