Skip to content

ryanswood/dotfiles

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotfiles

Setting up

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

Configure Iterm

  • 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"

Configure Stowable directories

stow psql rubygems git rubygems

Configure dnsmasq for local development

  1. mkdir -pv $(brew —- prefix)/etc/
  2. Copy conf file stow --dir ../ --target $(brew --prefix)/etc/ dnsmasq
  3. echo 'address=/.dev.local/127.0.0.1' >> $(brew --prefix)/etc/dnsmasq.conf
  4. sudo brew services dnsmasq
  5. Create a DNS resolver: A. sudo mkdir -v /etc/resolver B. sudo bash -c 'echo “nameserver 127.0.0.1” > /etc/resolver/local.dev'
  6. Verify that all .dev.local requests are using 127.0.0.1: scutil --dns | grep dev.local

Resouce: https://kharysharpe.medium.com/automatic-local-domains-setting-up-dnsmasq-for-macos-high-sierra-using-homebrew-caf767157e43

Removing stow

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 57.8%
  • Shell 42.2%