The configuration of a macOS machine for terminal-first development: zsh,
tmux, the Herdr app, Ghostty, git and a coding agent. The Herdr app replaced
tmux for daily work, and tmux stays installed. The Neovim configuration lives
in a separate repository, vim-files.
git clone [email protected]:jvortmann/dots.git ~/prj/config/dots cd ~/prj/config/dots ./setup.sh "computer_name" "User Name" "[email protected]"
One command does the whole job, in this order:
symlink.shlinks~/.dotsto this repository, then links the files that need no setup of their own.osx/install-apps.shinstalls Homebrew if it is missing, then everything inosx/Brewfile.osx/download-apps.shfetches the apps that Homebrew does not carry.osx/configure-osx.shsets the computer name, the keyboard, the spaces and the shortcuts.setup_tools.shruns thesetup.shof each tool folder below.setup-git-user.sh,setup-ssh-key.shandsetup-ssh-config.shwrite the git identity and an SSH key named after the computer.
Every script runs alone. To set up one tool, run its own script, such as
./tmux/setup.sh or ./herdr-app/setup.sh. Each one links its folder into
~/.config or ~, and does nothing else, unless the table says so.
| Tool | Folder | What its setup does |
|---|---|---|
| bat | bat/ |
links the config, rebuilds the theme cache |
| ctags | ctags/ |
links the config |
| fd | fd/ |
links the ignore file |
| Ghostty | ghostty/ |
links the config and its themes |
| Herdr app | herdr-app/ |
moves an old real folder at ~/.config/herdr-app to ~/.config/herdr-app.pre-dots (with a date added when a backup of that name exists), then links the whole folder to ~/.config/herdr-app, because the app writes its state there and git/ignore keeps that state out |
| herdr-core | herdr-core/ |
moves an old real folder at ~/.config/herdr-core to ~/.config/herdr-core.pre-dots (with a date added when a backup of that name exists), then links the whole folder to ~/.config/herdr-core. Its config.toml starts Homebrew zsh as a login shell in new terminals, and shows the last screen of a lost terminal above the new shell |
| iex | iex/ |
links .iex.exs |
| Karabiner | karabiner/ |
links the key remaps |
| mise | mise/ |
links the global tool versions, as a file and not a folder |
| OrbStack | orbstack/ |
sets its CPU and memory, and links nothing |
| pi | pi/ |
links the whole folder to ~/.config/pi, because pi writes its state there (auth, sessions, cache, extensions) and git/ignore keeps that state out |
| tmux | tmux/ |
links the config, clones the plugin manager (then prefix + I in tmux) |
| zsh | zsh/ |
links the shell config, sets zsh as the login shell |
symlink.sh covers git, ripgrep, readline, gem, irb, guard and eslint, which
need only a link.
dev-docs/ and raycast/ have no script. They hold exported preferences,
which you import by hand in DevDocs and Raycast.
zsh/conf/plugins/pi.zsh points pi at ~/.config/pi with
PI_CODING_AGENT_DIR. The pi/ folder holds:
| Path | What it holds |
|---|---|
AGENTS.md |
the rules every agent session follows |
APPEND_SYSTEM.md |
our guidelines, agent rules and reply rules, which pi adds after the system prompt it generates (its list of tools and the rules of each extension) |
extensions/preamble.ts |
changes the opening sentence of the system prompt and drops its documentation section, so the main prompt never names the agent harness |
extensions/herdr-restore.ts |
labels a Herdr app terminal with the file of its pi session, so that a terminal that comes back after a reboot resumes that session |
skills/ |
the skills that agents load for a kind of work, such as tdd, git-commit and create-pr |
agents/ |
six subagents: dev implements one task under TDD, editor writes text that people read and runs ste-lint until it passes, review reads a diff and changes nothing, Explore and Plan search and plan and change nothing, research searches like Explore and saves one cited note in plans/research/ |
prompts/ |
three commands: /goal, /review-architecture and /watch-pr |
pi-permissions.jsonc |
what an agent may run without asking, and what it may never run |
settings.json |
runs greprip/greprip.sh before each agent shell command, so grep and find there use ripgrep and fd and skip ignored files. The terminal keeps the real ones. mise installs greprip |
update-impeccable.sh |
updates the impeccable skill from upstream |
The files are live, because ~/.dots points at this checkout. An edit applies
at once for most tools, and at the next shell for zsh. git/hooks/commit-msg checks each
commit message. The tests are in tests/, in the same layout as the files
they test. Run bashunit from the root to run all of them.
This repository is public and shared. Keep secrets and machine-specific values out of it.