Skip to content

Repository files navigation

ci

nonrational/dotfiles

Architectural Digest for $HOME.

Installation

macOS

#!/usr/bin/env sh
xcode-select --install

git clone https://github.com/nonrational/dotfiles .dotfiles
cd .dotfiles

make brew-install
make brew-bundle

if [ -f /opt/homebrew/bin/bash ]; then
  echo '/opt/homebrew/bin/bash' | sudo tee -a /etc/shells
  chsh -s '/opt/homebrew/bin/bash'
else
  echo 'Unable to set default shell to `/opt/homebrew/bin/bash`'
fi

# Better get a new terminal at this point.
make init-submodules
make deploy
make link-karabiner
make clipboard-bridge          # launch agent that serves clipboard images to exe.dev VMs

# Authenticate with `gh` to clone private repo(s)
gh auth login
make link-sublime
make restore-preferences

# Almost there! Good idea to restart iTerm now, and take the opportunity to
# ensure it has full disk access.
make macos-reset-dock
make macos-disable-restore-apps-on-login
make macos

GNU/Linux

#!/usr/bin/env sh

git clone git@github.com:nonrational/dotfiles .dotfiles
cd .dotfiles

make init-submodules
make deploy

Clipboard bridge (exe.dev VMs)

make clipboard-bridge loads org.nonrational.clipboard-bridge, a socket-activated launch agent on 127.0.0.1:2224 that answers image requests from the pasteboard and nothing else. home/.ssh/config.d/exe.conf reverse-forwards that port into every *.exe.xyz session and shares connections between windows; add Include config.d/*.conf as the first line of ~/.ssh/config once. Inside a VM, Claude Code's ctrl+v then pastes whatever image is on the mac clipboard. The VM half is the wl-paste shim in nonreagent/dotfiles; design and trust model: clipboard bridge design. The include is global, so OpenSSH's permission check on it gates every ssh: if they all start failing with Bad owner or permissions on ~/.ssh/config.d/exe.conf, chmod 644 the repo's copy.

Development

Since live-copies are symlinked out, commit and push changes as necessary.

For big refactors, don't try to do it live; use a separate clone or worktrees.

Credits

People whose good work I've borrowed, curated via /find-inspiration.

About

:neckbeard: Mostly macOS with a dash of GNU/Linux.

Topics

Resources

Stars

8 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages