This repository documents the settings, preferences, and tools I've come to rely on after using a Macbook Pro for over 5 years. My configurations are primarily for NodeJS development, but I dip my toes elsewhere as well.
Setting up a new Macbook Pro for development? Check out my machine setup checklist
ln -sf $(pwd)/.zshrc ~/.zshrc
These iTerm2 settings come with nice colors and hotkeys.
Hotkeys for more natural text manipulation include:
⌘Z
- Undo⌘←Delete
- Delete everything before cursor⌥←Delete
- Delete first word before cursor⌥←
,⌥→
- Jump cursor to previous/next word⌘←
,⌘→
- Jump cursor to start/end of line
To install:
- Go to iTerm > Preference.
- Check "Load Preferences from a custom folder or URL"
- Paste this URL: https://raw.githubusercontent.com/jonmellman/dotfiles/master/iTerm/com.googlecode.iterm2.plist
You may need to restart iTerm.
Note that you should backup and move each of the target files before symlinking over them.
ln -sf $(pwd)/VSCode/settings.json ~/Library/Application\ Support/Code/User/settings.json
ln -sf $(pwd)/VSCode/keybindings.json ~/Library/Application\ Support/Code/User/keybindings.json
# Remove snippets/ before symlinking - necessary for directories.
rm -rf ~/Library/Application\ Support/Code/User/snippets && ln -sf $(pwd)/VSCode/snippets ~/Library/Application\ Support/Code/User/snippets
As per http://egorsmirnov.me/2015/05/04/global-gitignore-file.html:
ln -s $(pwd)/.gitignore_global ~/.gitignore_global
git config --global core.excludesfile ~/.gitignore_global