Dev environment setup for new machines.
Clone this Repo (to the home directory)
$ cd
$ git clone https://github.com/calebmosher/env.git
Link Shell Config
$ cd
$ ln -s ~/env/.bash_profile .bash_profile
$ ln -s ~/env/.bashrc .bashrc
Install Xcode Command Line Tools
$ xcode-select --install
Can also download directly from (need to login with Apple ID):
https://developer.apple.com/download/more/
Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
You may want to change permissions on /usr/local
after this step for future brew
installs.
$ sudo chown -R $(whoami) /usr/local
Install Consolas (if necessary)
$ ~/env/install-consolas.bash
Install Node/Npm and Nvm
$ brew install node
$ brew install nvm
$ cd
$ mkdir .nvm
$ . .bashrc
Google for DMG.
Activate code
Path should be added in .bashrc already, but if not, add this line:
export PATH=$PATH:/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin
Link settings.json
and theme-cal
Run the setup script:
$ ~/env/setup-vscode.bash
Or run these lines individually:
$ ln -s ~/env/vscode/settings.json ~/Library/Application\ Support/Code/User/settings.json
$ ln -s ~/env/vscode/theme-cal ~/.vscode/extensions/theme-cal
Install Extensions
Search for these in Extensions:
- Auto Close Tag (Jun Han)
- Git Lens (Eric Amodio)
- node-readme (bengreenier)
- Ruby (Peng Lv)
- Sublime Babel (Josh Peng)
- Sublime Text Keymap and Settings Importer (Microsoft)
- TextMate Languages (Ben Hockley)
- Whitepsace+ (David Houchin)
Install Sublime Text 3
Google for DMG.
Link subl
(to /usr/local/bin
)
$ ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
Install Package Control
Google for Python script. Restart Sublime.
Link Preferences and Syntax Theme
$ cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User
$ ln -s ~/env/sublime/Caleb.tmTheme Caleb.tmTheme
$ ln -s ~/env/sublime/Preferences.sublime-settings Preferences.sublime-settings
Install Packages
Use ⌘ + ⇧ + P, then "Install Package".
- Primer Theme
- Babel
- SCSS
- Unicode Character Highlighter
- Install Spectacle (spectacleapp.com)