These are config files to set up a system the way I like it.
export DESTINATION="$HOME/src/github.com/faun/dotfiles"
export INSTALL_SCRIPT_URL="https://gist.githubusercontent.com/faun/67fadc3f1525399da236589562cb4583/raw/install_dotfiles.sh?$(date +%s)"
curl -sSL -o dotfiles_installer.sh "$INSTALL_SCRIPT_URL"
chmod +x ./dotfiles_installer.sh
./dotfiles_installer.sh
There are a number of settings that can be configured for these dotfiles. They are:
Create a file at ~/.gitconfig.local:
[user]
name = Your Name
email = email@example.com
[github]
user = username
Add any additional settings in ~/.vimrc.local or .vimrc.local in a project directory for project-specific settings
Add any additional configuration settings to ~/.local.sh and these will be sourced at login.
Things that can be added to this file include custom aliases, configuration settings, private environment variables, paths, etc.
zsh/05_secrets.sh provides three commands for loading secrets from 1Password into shell env vars, cached locally so shell startup never blocks on a biometric prompt. On macOS the cache is the login Keychain; on Linux it is one systemd-creds encrypt --user blob per secret in ~/.config/secret_store/values/<NAME>.cred (override with SECRET_STORE_DIR), bound to the host's credential key (plus TPM2 if present), your UID and the secret's name, so a copied or renamed file won't decrypt. Needs systemd ≥ 256; without systemd-creds it refuses rather than storing plaintext. With no TPM, root or someone with the raw disk can still recover the host key.
The model is one 1Password item with many fields. Each field's label matches the env var name. The item is referenced only by UUID — names rename, UUIDs don't.
Add the following to ~/.local.sh:
export OP_ACCOUNT="<account>.1password.com"
export OP_SECRETS_VAULT="<vault-uuid>"
export OP_SECRETS_ITEM="<item-uuid>"
Operations:
| Command | What it does |
|---|---|
secret_store NAME |
Read field NAME from 1Password, cache it locally, and record NAME in the index. Run once per machine, or after rotating the value. |
secret_store_all |
Fetch every populated field on the configured 1Password item and cache all of them. Use to bootstrap a new machine or refresh everything at once. |
secret_delete NAME |
Remove the cached value and drop NAME from the index. |
secret_load NAME |
Read NAME from the cache and export NAME=<value>. Silent on miss. Called automatically at shell startup for every name in the index. |
To add a new secret:
- In 1Password, add a concealed field labeled exactly
NAME(the desired env var name) to the configured item. - Run
secret_store NAMEonce — it caches the value and recordsNAMEin the index. - Every new shell exports
$NAMEautomatically (no manual edit to the file needed).
brew install zsh
Add Homebrew Zsh to /etc/shells
sudo sh -c 'echo "$(which zsh)" >> /etc/shells'
Set Homebrew Zsh as your default user
sudo chsh -s $(which zsh) $(whoami)
Install tmux
brew install tmux
brew install reattach-to-user-namespace
Zellij is installed alongside tmux. tmux
stays the default multiplexer (t / tat); zellij is opt-in via zj.
zj is worktree-aware. Sessions are grouped by git checkout: a repo's mainline
checkout gets one session named after the repo (e.g. dotfiles), and each
linked worktree gets its own <repo>-<branch> session (e.g.
dotfiles-DATAINFRA-1234). Worktrees live at <repo>/../worktrees/<branch>,
the same layout recent uses.
| Command | Action |
|---|---|
zj |
attach to (or switch to) this checkout's session |
zj <ticket-key> |
jump to the worktree matching a ticket key in the current repo, creating it if needed |
zj <repo-path> <ticket-key> |
same, but for another repo by path |
zj list-sessions, zj kill-session … |
any zellij subcommand is passed straight through |
The ticket key is matched as a substring of existing worktree / branch names
(fuzzy-picked if several match). If nothing matches, a worktree is created on a
new branch named exactly the key. When run from inside a zellij session,
zj switches the attached client (via zellij action switch-session) instead
of nesting; from a plain shell it attaches. The active session name is set as
the terminal tab title so it stays visible.
Config lives at config/zellij/config.kdl (symlinked to ~/.config/zellij). It
keeps zellij's native modal keys and adds a tmux-compatibility prefix on
Ctrl+a so existing muscle memory carries over. After pressing Ctrl+a:
| Keys | Action | tmux equivalent |
|---|---|---|
Ctrl+a then | |
split right | prefix | |
Ctrl+a then - / \ |
split down | prefix - / \ |
Ctrl+a then c |
new tab | new-window |
Ctrl+a then , |
rename tab | rename-window |
Ctrl+a then n / p |
next / previous tab | next/prev-window |
Ctrl+a then h/j/k/l |
move focus | vim-tmux-navigator |
Ctrl+a then H/J/K/L |
resize pane | prefix H/J/K/L |
Ctrl+a then z |
zoom pane | prefix z |
Ctrl+a then x |
close pane | prefix x |
Ctrl+a then s |
session manager | prefix s |
Ctrl+a then d |
detach | prefix d |
Ctrl+a then [ |
scroll / copy mode | prefix [ |
Ctrl+a then Ctrl+a |
send literal Ctrl+a |
send-prefix |
Plus, without the prefix: Shift+Left / Shift+Right switch to the
previous / next tab (mirrors tmux's bind -n S-Left / S-Right), and Alt+s
opens the session switcher directly (same picker as Ctrl+a then s).
Sessions persist and resurrect automatically (session_serialization),
replacing tmux-resurrect/continuum. Native zellij modes (Ctrl+p pane,
Ctrl+t tab, Ctrl+n resize, Ctrl+o session, …) remain available.
The status line is zellij's own built-in tab-bar/status-bar (the default
layout — no default_layout override). A previous version used the
third-party zjstatus plugin for a
tmux-style status line, but it was dropped after hitting an unresolved
zjstatus bug under zellij 0.44's wasmi plugin runtime that permanently
corrupted the rendered tab names after a session re-attach.
Herdr runs coding agents (Claude Code, Codex, …) in
terminals that outlive the window, the shell, and the SSH connection. It sits
alongside tmux and zellij, and tmux stays the default multiplexer (t /
tat). It has three parts:
- herdr-core (
hc): the background runtime that owns the terminals.install/08_herdr.shinstalls or updates it into~/.local/binusing the upstream installer, which is saved to a file and checksum-verified, not piped to sh. - Herdr desktop app: Homebrew cask
herdr-app(macOS). It arranges hc terminals into windows and connects to other machines' cores over SSH. - Herdr phone app (iOS/Android): connects to a machine's core over SSH. There is nothing to install for it beyond herdr-core on that machine.
hd is a worktree-aware launcher on top of hc. With no arguments it attaches
to the core terminal named after the current git checkout, starting a shell
there first if none is live. The name is the repo name on the mainline (e.g.
dotfiles) or <repo>-<branch> in a linked worktree (e.g.
dotfiles-datainfra-1234), the same naming as zj, lowercased and folded
into hc's a-z 0-9 - _ alphabet (32 chars max). Detach with ctrl+\.
The terminal keeps running, and the desktop and phone apps see it too. Any
arguments pass straight through to hc (e.g. hd ls, hd attach t3).
warp finds these terminals as well, so a worktree already open in hc is
reattached rather than reopened.
This replaced the standalone herdr TUI, whose sessions are not shared with
herdr-core. Its config (prefix keys, sounds, theme) lives in git history under
config/herdr/.
See Powerline repo for more info.
My personal favorite is inconsolata-dz.
See iTerm2 downloads for more info