- JavaScript 62.7%
- Shell 31%
- Ruby 3.3%
- CSS 3%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| aerospace | ||
| alt-tab | ||
| bash | ||
| ghostty | ||
| git | ||
| herdr | ||
| macos | ||
| raycast | ||
| rectangle | ||
| shell | ||
| starship | ||
| vivaldi | ||
| zen-browser | ||
| zsh | ||
| .gitignore | ||
| Brewfile | ||
| install.sh | ||
| link.sh | ||
| README.md | ||
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:
- Homebrew packages from the
Brewfile. Homebrew is the package manager on both systems, so there is one list, with the Mac apps in anif 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. - Claude Code, bun, uv and nvm from their own installers, because they update themselves.
- Links the config by running
link.sh. - 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
Brewfileand re-runinstall.sh. - Add a config file: put it in the repo and add a
linkline tolink.sh. - Settings for one machine only (secrets, work things) go in
~/.zshrc.localor~/.bashrc.local, and for git in~/.gitconfig.local. None of them are in the repo. - An installer appended to
~/.zshrcor~/.bashrc: that is this repo's file, sogit diffshows it.shell/env.shalready 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.tomldecides which screen shows which workspace. - Apps:
aerospace/arrange.shdecides 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.plistraycast/,rectangle/: each app's import optionraycast/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 themezen-browser/readme.md: turning on Zen's Browser Developer Tools, to live-edituserChrome.css