Make sure you have Homebrew installed.
Install necessary packages:
$ brew install git stow vim
Clone this repo into your home directory and then cd into it to issue the stow command:
$ git clone https://github.com/ryanswood/dotfiles.git dotfiles
$ cd dotfiles
$ stow vim zsh rubygems git
Setup utility script symlinks:
$ ln -s ~/dotfiles/bin/* /usr/local/bin/
Add your .zshrc.local
file to your home directory. This is for customization specific to you. You can either create an empty file or symlink from an existing location:
$ touch ~/.zshrc.local
Setup VS Code
vscode/load-extensions.sh
cp vscode/conf.json ~/Library/Application\ Support/Code/User/settings.json
- Uncheck
Preferences > Appearance > Show per-pane title bar with split panes
- Set Working directory via
iTerm > Preferences > Profiles > General > Working Directory
. Select "Reuse previous sessions working directory" - Load custom colors via
iTerm > Preferences > Profiles > Colors > Color Presets > Import
- In
Preferences > Profiles > Keys
, select "+Esc" from "Left option key acts as"
stow psql rubygems git rubygems
- mkdir -pv $(brew —- prefix)/etc/
- Copy conf file
stow --dir ../ --target $(brew --prefix)/etc/ dnsmasq
echo 'address=/.dev.local/127.0.0.1' >> $(brew --prefix)/etc/dnsmasq.conf
sudo brew services dnsmasq
- Create a DNS resolver:
A.
sudo mkdir -v /etc/resolver
B. sudo bash -c 'echo “nameserver 127.0.0.1” > /etc/resolver/local.dev' - Verify that all .dev.local requests are using 127.0.0.1:
scutil --dns | grep dev.local
If you want to remove stow installed dotfiles, in case you want to stow again from another source, you can remove the existing dot symlinks with:
$ stow -D vim zsh rubygems git