Personal and work shell/editor configuration for macOS and Enterprise Linux (zsh primary, a minimal bash). One repo, one deploy tool (mise):
mise dotlinks the files in this repo into$HOME(seemise.toml).miseinstalls language runtimes (go, node, python, ...), replacing asdf/pyenv/rbenv/nodenv/goenv/tenv.
mise.toml what gets linked where (the source of truth for deployment)
mise.<env>.toml optional per-role overlays, used with `mise -E <env>` (e.g. legacy)
mise/ global mise config: mise.toml (all hosts; macOS-only brew packages use `os = ["macos"]`)
zsh/ zshrc, d/ (numbered init snippets), func/, completion/
bash/ bashrc, bash_profile, profile, d/ (older, minimal)
git/ gitconfig, gitignore, commit-template, bin/ (git-*)
scripts/ executables run from the checkout, not deployed (e.g. backup-conflicts)
.mailmap author mapping for this repo only (git reads it from the repo root)
vim/ nvim/ vimrc + ftplugin; Neovim (lazy.nvim, see nvim/README.md)
tmux/ ghostty/ terminal config
starship/ atuin/ prompt and shell history
gnupg/ misc/ gpg.conf; curlrc, gemrc, inputrc
On a host that has a work repo (dotfiles-pixar), don't follow this section: that
repo clones this one to ~/cfg and applies it. Use its README instead.
git clone git@github.com:arusso/dotfiles.git ~/cfg && cd ~/cfg
# install mise: `brew install mise` (macOS) or `curl https://mise.run | sh` (Linux)
mise trust
mise dot apply --dry-run # review
mise dot apply # add --force if default files (~/.bashrc, ...) existapply refuses to overwrite existing files unless you pass --force, so on a
fresh EL host expect to need it for the stock ~/.bashrc, ~/.bash_profile
and ~/.profile. Re-running apply is safe. ~/.gnupg is set to mode 0700 by
the permissions entry in mise.toml; if gpg still complains on the first run,
run mise dot apply a second time.
scripts/backup-conflicts archives every existing file that mise dot apply --force
would overwrite (the entries mise dot status --json reports as differs):
scripts/backup-conflicts ~/cfg # run before the forced apply
mise dot apply --forceThe archive is ~/.config/dotfiles/backups/pre-apply-<YYYYMMDD-HHMMSS>.tar.gz
(directory mode 700, archive mode 600). List it with tar -tzvf <archive> and
restore with tar -xzpf <archive> -C ~, which puts each file back at its original
path (symlinks are stored as links). Nothing is written when no file conflicts.
The work repo's bootstrap task runs this automatically.
Open a new shell afterwards. Runtimes come from mise: add them to
~/.config/mise/config.toml (mise use -g go@1.27).
There are two layers; use whichever fits:
- Shell settings:
~/.config/dotfiles/config, then~/.config/dotfiles/config.$HOSTNAME, are sourced early, so they can set any option below.~/.zshrc.post-initis sourced last for anything else (aliases, PATH additions). - Whole files: add
mise.<env>.tomlnext tomise.tomland deploy withmise -E <env> dot applyto link or write extra/different files for a role.
mise/miserc.toml (deployed to ~/.config/mise/miserc.toml) defines env_sets,
named groups of envs. mise/miserc.local.toml is not in this repo: a host-specific
layer such as a private work repo can deploy ~/.config/mise/miserc.local.toml, which
mise merges over miserc.toml, to select an env (env = ["work"]) without this repo
knowing about it.
legacy: hosts with an old glibc (EL9).mise -E legacy dot applydeploysconfig.legacy.toml(tool overrides) and amiserc.tomlselecting it. Selecting it by hand:env = ["legacy"].work_legacy: anenv_set(["work", "legacy"]) for a legacy host that also gets the work layer. The work repo does not pick it automatically: on such a host setenv = ["work_legacy"]in~/.config/mise/miserc.local.toml.
Set these in ~/.config/dotfiles/config (or config.$HOSTNAME):
| Variable | Default | Effect |
|---|---|---|
USE_MISE |
1 |
0 ignores mise and uses the legacy *env tools if present |
USE_MISE_SHIMS |
0 |
1 uses mise shims instead of mise activate |
PROMPT_SIMPLE |
0 |
simple prompt |
PROMPT_BATTERY_STATUS |
1 |
battery on prompt (hosts with a battery) |
PROMPT_NONZERO_RC / PROMPT_ZERO_RC |
[✘] / [✓] |
exit status markers |
SSH_AGENT_MODE |
bastion |
SSH agent behaviour |
SSH_AGENT_NAME |
gpg-agent |
which agent to use |
SSH_AGENT_SSH_AUTH_SOCK |
$HOME/.ssh_auth_sock |
SSH_AUTH_SOCK value |
SSH_AGENT_CACHE_TTL |
1800 |
agent key cache, seconds |
PYENV_ENABLE / RBENV_ENABLE / GOENV_ENABLE |
0 / 0 / 1 |
legacy fallbacks, only used when mise is absent |
ATUIN_ENABLE |
1 |
shell history via atuin |
~/.zshrc -> zsh/zshrc finds the repo root by resolving its own symlink
(DOTFILES_DIR), then sources zsh/d/*.sh in filename order. The numeric
prefix is the load order: 02 config, 05 init/PATH, 06 Homebrew PATH
then mise (so tools it installs are visible to everything after), 07 prompt,
11 aliases, 2x git/fzf, 50 ssh, 70+ legacy runtime fallbacks, 90
atuin, 99 post-init (~/.zshrc.post-init, then compinit). bash/bashrc does the
same for bash/d.
- Legacy runtime managers (
zsh/d/70-{pyenv,rbenv,nodenv}.sh, goenv in71-golang.sh, tenv/tfenv in71-terraform.sh) only run when mise is missing. Delete them once every host has mise. mise dotis new; if it changes under you,mise.tomlis a plain source/target map that ports easily to other tools.