No description
  • JavaScript 62.7%
  • Shell 31%
  • Ruby 3.3%
  • CSS 3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-12-02 10:58:52 +01:00
aerospace leave dialogs like file pickers where aerospace puts them 2026-11-23 10:52:47 +01:00
alt-tab add alt-tab (not sure if this works though) 2025-12-22 19:54:20 +01:00
bash share shell config between bash and zsh, install on linux too 2026-11-04 16:12:29 +01:00
ghostty ghostty: drop-down terminal on cmd-enter, on the screen with the mouse 2026-11-23 10:52:47 +01:00
git share shell config between bash and zsh, install on linux too 2026-11-04 16:12:29 +01:00
herdr herdr: no font ligatures, heaviest font weight 2026-11-23 10:52:47 +01:00
macos set the macos settings aerospace needs from install.sh 2026-11-23 10:52:47 +01:00
raycast add raycast commands for ghostty and the zen profiles 2026-11-04 19:08:34 +01:00
rectangle add rectangle 2025-12-22 17:34:21 +01:00
shell add helium alias to open files in the helium browser 2026-12-02 10:58:52 +01:00
starship add starship 2026-02-04 23:23:14 +01:00
vivaldi vivaldi stuff 2025-12-17 17:00:06 +01:00
zen-browser link userChrome.css and user.js into every zen profile 2026-11-23 10:52:47 +01:00
zsh find bun completions through $HOME, so linux finds them too 2026-11-23 10:53:47 +01:00
.gitignore add herdr focus mode, keep its mods in dotfiles 2026-11-09 15:25:07 +01:00
Brewfile add aerospace config 2026-11-04 16:12:29 +01:00
install.sh set the macos settings aerospace needs from install.sh 2026-11-23 10:52:47 +01:00
link.sh link userChrome.css and user.js into every zen profile 2026-11-23 10:52:47 +01:00
README.md set the macos settings aerospace needs from install.sh 2026-11-23 10:52:47 +01:00

dotfiles

Shell config, git config and the tools I install on every machine. Works on macOS and Linux, in bash and zsh alike.

New machine

git clone https://git.brm.sh/bram/dotfiles.git ~/.dotfiles
~/.dotfiles/install.sh

A fresh Ubuntu needs sudo apt install git first.

install.sh does four things. Each one skips what is already there, so it is safe to re-run:

  1. Homebrew packages from the Brewfile. Homebrew is the package manager on both systems, so there is one list, with the Mac apps in an if OS.mac? block. On Ubuntu it first uses apt for what Homebrew itself needs. The login shell stays as it is: the config works in bash and zsh.
  2. Claude Code, bun, uv and nvm from their own installers, because they update themselves.
  3. Links the config by running link.sh.
  4. On macOS, the settings AeroSpace needs, with macos/defaults.sh: "Displays have separate Spaces" off, ctrl-1 to ctrl-4 freed from "Switch to Desktop", and Mission Control grouping windows by app. The Spaces setting applies after logging out.

What gets linked

In the repo Linked at
shell/env.sh ~/.config/shell/env.sh
shell/aliases.sh ~/.config/shell/aliases.sh
zsh/.zshrc ~/.zshrc
bash/.bashrc ~/.bashrc
git/config ~/.gitconfig
git/ignore ~/.config/git/ignore
starship/starship.toml ~/.config/starship.toml
ghostty/config ~/.config/ghostty/config, on macOS ~/Library/Application Support/com.mitchellh.ghostty/config
aerospace/aerospace.toml ~/.aerospace.toml, macOS only
herdr/settings.json ~/.config/herdr-app/settings.json (Herdr desktop: theme, zoom, sounds), macOS only
herdr/layouts/brm.json ~/.config/herdr-app/layouts/brm.json (Herdr desktop layout, pick it once with ctrl-shift-l), macOS only
herdr/mods/<name>/ ~/.config/herdr-app/mods/<name> for each mod folder, the panels brm.json uses that Herdr doesn't ship (a new one gets its link on the next link.sh run). Herdr doesn't see edits through the link: touch -h the link or re-run link.sh to reload. macOS only
zen-browser/userChrome.css, zen-browser/user.js chrome/userChrome.css and user.js in every Zen profile (a new profile gets them on the next link.sh run), macOS only

.zshrc and .bashrc hold only what differs between the two shells. Both source env.sh (PATH and tool settings) and aliases.sh, so a new alias goes in aliases.sh once and works everywhere. .bashrc sets up PATH before it checks for a terminal, so ssh host <command> finds the same tools.

These are symlinks, so editing ~/.zshrc edits the repo and git pull is the deploy. link.sh runs fine by itself, for a machine that only needs the config. A file that was already there is moved to <name>.pre-dotfiles.

Day to day

  • Add a tool: add a line to the Brewfile and re-run install.sh.
  • Add a config file: put it in the repo and add a link line to link.sh.
  • Settings for one machine only (secrets, work things) go in ~/.zshrc.local or ~/.bashrc.local, and for git in ~/.gitconfig.local. None of them are in the repo.
  • An installer appended to ~/.zshrc or ~/.bashrc: that is this repo's file, so git diff shows it. shell/env.sh already puts ~/.local/bin, bun, deno, pnpm, opencode, railway and nvm on the PATH, so the addition can usually be thrown away.

AeroSpace: a layout per setup

Two files decide where windows go at work, at home, and on the laptop alone:

  • Screens: aerospace/aerospace.toml decides which screen shows which workspace.
  • Apps: aerospace/arrange.sh decides which workspace each app goes to, and tiles some of them at home.

The script tells the setups apart by the connected monitors. AeroSpace starts arrange.sh watch at startup, and it rearranges every window when the monitors change. To do that by hand, press alt-shift-; then a. A new monitor goes in both files; a new app only in arrange.sh. What the script did is in ~/Library/Logs/aerospace-arrange.log.

macOS app settings

Imported by hand, once, from the app's own settings screen:

  • alt-tab/: defaults import com.lwouis.alt-tab-macos alt-tab/com.lwouis.alt-tab.macos.plist
  • raycast/, rectangle/: each app's import option
  • raycast/scripts/: Raycast commands: Open new Ghostty, and Zen Personal and Zen Work, one per Zen profile. Add the folder once in Raycast: Settings → Extensions → + → Add Script Directory.
  • vivaldi/: custom CSS and theme
  • zen-browser/readme.md: turning on Zen's Browser Developer Tools, to live-edit userChrome.css