Skip to content

Latest commit

 

History

History
156 lines (137 loc) · 4.44 KB

File metadata and controls

156 lines (137 loc) · 4.44 KB

License: MIT

Mac OS Development Environment Set Up Guide

1. Install Xcode

Search for it in the App Store. You should also install the CLI Tools:

$ xcode-select --install

2. Install iTerm2

Download it from here. After install, set up the follow keyboard shortcuts:

⌘⌥← Previous Tab
⌘⌥→ Next Tab
⌘← Send Escape Sequence+ OH
⌘→ Send Escape Sequence+ OF
⌥← Send Escape Sequence+ b
⌥→ Send Escape Sequence+ f
⌘←Delete Send Hex Code 0x15
⌥←Delete Send Hex Code 0x1B 0x08

3. Install Homebrew Package Manager

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

4. Update git to latest version

$ brew install git

After installation finishes, you need to restart your terminal for your shell to pick up new changes to the PATH environment variable so that the new version of git in /usr/local/bin takes precedence over system git in /usr/bin.

5. Update zsh to latest version

$ brew install zsh

Restart your terminal after installation.

6. Install Oh My Zsh

$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Add some plugins to help make life easier in zsh. A list of default plugins included with oh-my-zsh can be found in ~/.oh-my-zsh/plugins. Here are some suggested plugins to use:

output gitignore templates from gitignore.io
aws auto complete for awscli
docker auto complete for docker commands
docker-compose aliases for docker-compose commands, e.g. dco, dcb, dcup, dcupd
gitignore
ssh-agent auto start ssh-agent - check github page for configuration
alias-finder Command accepts a phrase to search for matching aliases - check github page for extra options
common-aliases A lot of commonly used ones - check github page for a full list

7. Install Tree

This command allows you to create an ascii directory/file tree customizable by depth with -L option that can be useful for documentation purposes.

$ brew install tree

8. Update Bash version

$ brew install bash

9. Install Bash Completion

This brings up shell command completion after a double Tab key press.

$ brew install bash-completion

10. Update Vim to latest version

$ brew install vim

11. Install Ultimate Vim configuration

git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime
sh ~/.vim_runtime/install_awesome_vimrc.sh

12. Update nano to latest version

$ brew install nano

13. Install nanorc Syntax Highlighting

https://github.com/scopatz/nanorc

14. Install Composer Package Manager

$ brew install composer

15. Install Node Package Manager

$ brew install npm

16. Others

While the previous suggestions are my own personal selection, you might find others here: https://sourabhbajaj.com/mac-setup/