My dot-files.
I use Rake to manage my dot-files. It uses Homebrew to install packages and Ruby to install dot-files and/or perform any extra customisations.
I'm in the process of moving to a nix-based setup -- using nix-darwin and Home Manager -- to replace this home-grown solution.
If this setup is new to you, these resources helped me:
- Home Manager Manual
- Migrating from Homebrew to Nix for OSX
- Declarative macOS Configuration Using nix-darwin And home-manager
- Setup nix, nix-darwin and home-manager from scratch on an M1 Macbook Pro
- How to Learn Nix, Part 19 Switching from Homebrew to Nix
I probably should've learned how to use Nix the current way, but instead I've started using the experimental Flake method. This will no doubt get some major rewrites as I learn how nix, flakes and the different modules work together.
Install Xcode developer tools:
xcode-select --install
Clone this repo:
git clone https://github.com/shoekstra/gotfiles.git ~/git/gotfiles
cd ~/git/gotfiles
Setup Home Manager before running rake install
.
make install
Install required gems:
bundle install --path vendor/bundle
View options:
bundle exec rake -T
Install everything:
bundle exec rake install
First install the One Half iTerm2 theme:
- Download iTerm2 One Half Dark preset:
wget -O /tmp/OneHalfDark.itermcolors https://raw.githubusercontent.com/sonph/onehalf/master/iterm/OneHalfDark.itermcolors
- Install preset:
open /tmp/OneHalfDark.itermcolors
- In iTerm: Preferences > Profiles > Colors, choose OneHalfDark
Load the plist
file in this repository:
- Open Preferences
- Click "Preferences" tab
- Select "Load preferences from a custom folder or URL"
- Enter the path to
files/iterm2/com.googlecode.iterm2.plist
in this rep