/dotfiles

Settings and preferences

Primary LanguageShell

Dotfiles

This is a guide to setting up my personal development environment. It's meant to get me up and running as fast as possible on a clean install of macOS. After running through the installation scripts and instructions, you'll have an environment configured with the following tools.

  • Homebrew: A badass little package manager for macOS.
  • Git: Everyone's favorite distributed version control system.
  • Node.js: The JavaScript runtime.
  • Neovim: The world's best text editor.
  • Mackup: A utility for syncing application settings when they're not worth copying into the dotfiles.
  • Ruby: A programming language with a focus on simplicity and productivity.
  • tmux: A utility that allows you to run multiple windows inside one terminal.
  • Postgres: An open-source SQL database.

In addition, these dotfiles install a ton of small, useful utilities command-line utilities and system applications, which can be viewed in the Brewfile. They also add several custom commands.

These dotfiles are heavily based on the Thoughtbot dotfiles and Paul Irish's dotfiles.

Prerequisites

Before anything else, install the system updates.

softwareupdate -ia

Then, install the Xcode's CLI tools and accept the license.

xcode-select --install
sudo xcodebuild -license accept

1Password

Before you can do anything useful, you’ll need to install 1Password manually to get access to all of your passwords. You can download it here. Configure it by scanning the QR codes from another instance of the app.

Git

In order to connect with GitHub, you'll need to generate an SSH key. Follow the instructions on GitHub.

Google Drive

Next, you’ll need to sync your application configurations. These are required by the dotfiles scripts.

To do this, Download Google Backup and Sync and install it. Follow the prompts to set it up, and then let the files sync.

Dotfiles Respository

Clone this dotfiles repo.

git clone git@github.com:LandonSchropp/dotfiles.git $HOME/.dotfiles

Most of the applications and utilities in these dotfiles (including Homebrew) can be installed by running the following command.

~/.dotfiles/bin/set-up

This executes the set-up-hook scripts, which install applications and configure the system. These scripts are idempotent, so feel free to run the set-up command as many times as you'd like.

Terminal Colors and Italics

To enable italic text in the terminal, you need to register italics with the TERM database.

tic $HOME/.dotfiles/xterm-256color-italic.terminfo
tic $HOME/.dotfiles/tmux-256color-italic.terminfo

For more information, check out these instructions.

macOS

Mathias Bynens maintains a script that configures several macOS system and application settings in one go. Because macOS is constantly updating, it's probably a good idea to pull it down an modify every once in a while. My latest local iteration is kept in the macos.sh script.

PostgreSQL

PostgreSQL is an open-source SQL database and is installed via Homebrew. It can be started and stopped with the following commands:

brew services start postgresql
brew services stop postgresql