/dotfiles

A repository containing all .dotfiles necessary to set up a new machine

Primary LanguageShellMIT LicenseMIT

dotfiles

A repository containing all .dotfiles necessary to set up a new machine

Primarily, this repo assumes that the new machine runs macOS/OSX.

Turn off Rootless

MacOS comes with System Integrity Protection turned on.

Turn it off before doing anything else.

Set up displays

Read this deep dive, Cmd+F for "Retina Macbooks," and update display settings accordingly.

Things to look out for:

  • font smoothing
  • display resolution (make sure to use integer scaling)

Install utils

macOS apps

Firefox extensions

Fonts

For IDEs and text editors

Install IBM Plex, also in this repo under fonts/.

For writing

Use iA Writer Duo for writing apps (Drafts and Scrivener specifically). This is also in fonts/.

iTerm setup

Keybindings

Use the itermkeymap file in this repo to set up Alt+left-arrow and Alt+right-arrow navigation defaults for iTerm.

Theme

Use Gruvbox Dark (contrast: hard) to differentiate terminal windows from text editor windows. Use the custom font, size 13.

Do this by importing the itermcolors file included in this repo.

Homebrew

Install Homebrew.

Then, use Brew to install the following:

brew install go pyenv conda node ruby git htop jq sqlite scmpuff tealdeer zsh zsh-syntax-highlighting ffmpeg youtube-dl

oh-my-zsh

Follow the installation instructions for oh-my-zsh

Then, use the .zshrc specified in this repo.

Git defaults

git config --global push.default current
git config --global user.email "you@example.com"
git config --global user.name "Your Name"

GitHub SSH

Follow the instructions here to set up GitHub SSH auth.

Use the latest Python version

Use pyenv versions to list the installed versions.

Use pyenv install to install the Python version you want, then switch to it globally.

pyenv install 3.9.0
pyenv global 3.9.0

Vim plugins

I use https://github.com/junegunn/vim-plug because it's more lightweight than Vundle.

Installation instructions

You'll need to open vim, then run :PlugInstall.

YouCompleteMe

The autocompleter plugin takes more steps. Follow the YouCompleteMe installation guide. If you've already installed pyenv and set the global Python version to 3.0 or above, then you can do:

cd ~/.vim/plugged/youcompleteme
python install.py --all

Sublime Text

Install Package Control

Then, install these packages:

  • Solarized Color Scheme (this is the text area color scheme)
  • Theme - Solarized Space (this is the UI color scheme)

Then, use the preferences file in this repo.