Project to keep track of my dotfiles modifictations
  • Lua 63%
  • Shell 37%
Find a file
2026-11-17 16:28:28 +01:00
docs dotfiles: Migrate to chezmoi and modularize Bash configuration 2026-11-16 11:08:46 +01:00
dot_bashrc.d bash: Add gwi to initialize bare repositories with a main worktree 2026-11-17 14:19:45 +01:00
dot_config nvim: Flatten leader mappings and align window keys with tmux 2026-11-17 16:28:28 +01:00
private_dot_local/private_share/private_applications bash: Replace repository checks with local chezmoi status 2026-11-16 11:20:48 +01:00
.chezmoi.toml.tmpl dotfiles: Migrate to chezmoi and modularize Bash configuration 2026-11-16 11:08:46 +01:00
.chezmoiignore dotfiles: Migrate to chezmoi and modularize Bash configuration 2026-11-16 11:08:46 +01:00
.gitignore Capture and general configuration of exocortex has been improved. 2020-10-03 14:49:16 +02:00
.luarc.json First pass of simplification for the kickstart.nvim 2023-11-25 21:35:57 +01:00
dot_bashrc dotfiles: Migrate to chezmoi and modularize Bash configuration 2026-11-16 11:08:46 +01:00
dot_gitconfig dotfiles: Migrate to chezmoi and modularize Bash configuration 2026-11-16 11:08:46 +01:00
dot_inputrc dotfiles: Migrate to chezmoi and modularize Bash configuration 2026-11-16 11:08:46 +01:00
dot_tmux.conf dotfiles: Migrate to chezmoi and modularize Bash configuration 2026-11-16 11:08:46 +01:00
dot_XCompose dotfiles: Migrate to chezmoi and modularize Bash configuration 2026-11-16 11:08:46 +01:00
LICENSE Add LICENSE 2023-03-29 19:29:26 +00:00
README.md bash: Replace repository checks with local chezmoi status 2026-11-16 11:20:48 +01:00

ericst's dotfiles

Personal dotfiles managed with chezmoi, using its conventional source-state layout. There is no package-selection layer or custom installer.

Layout

dot_bashrc                         -> ~/.bashrc
dot_bashrc.d/                      -> ~/.bashrc.d/
dot_config/                       -> ~/.config/
dot_gitconfig                     -> ~/.gitconfig
dot_inputrc                       -> ~/.inputrc
dot_XCompose                      -> ~/.XCompose
dot_tmux.conf                     -> ~/.tmux.conf
private_dot_local/                -> ~/.local/

All managed files and directories are installed as regular files and directories, including dot_config/nvim/lua/ and dot_config/nvim/ftplugin/. No symlink-backed configuration is needed.

The private_ attributes preserve private permissions on ~/.local, ~/.local/share, and ~/.local/share/applications. Shared directories are not marked exact_, so unrelated local files are left alone. .chezmoiignore keeps repository documentation out of the destination.

Preview and apply

Install chezmoi separately first. Bash configuration requires Bash 4 or newer. There are no chezmoi package-installation or apply scripts.

From this checkout, preview the migration without applying it:

chezmoi --source "$PWD" --working-tree "$PWD" diff
chezmoi --source "$PWD" --working-tree "$PWD" apply --dry-run --verbose

Once the preview is approved, initialize chezmoi to use this checkout. This writes its configuration but does not apply the dotfiles:

chezmoi --source "$PWD" --working-tree "$PWD" init

The config template remembers the selected source directory. Review once more, then apply interactively:

chezmoi diff
chezmoi apply --interactive

Applying replaces managed legacy symlinks with regular files and directories, including Neovim's lua and ftplugin directories. It does not remove the old checkout, unmanaged files, or previously installed opencode configuration. Review and remove those separately after checking that no remaining symlinks depend on the old checkout.

The package layout, Python/Ruby installers, and opencode sources have been removed. The Taskwarrior shell alias is included, as specified by its former installer, even if it was not previously installed on a particular machine.

Bash modules

dot_bashrc only resets inherited prompt hooks, loads /etc/bashrc, and sources readable files directly inside ~/.bashrc.d in filename order. Subdirectories are not sourced automatically.

Module in dot_bashrc.d/ Functionality
10-history.sh History settings and immediate history saving
20-navigation.sh Directory completion, mcd, and cdtmp
30-aliases.sh Safety and general-purpose aliases
40-editor.sh Editor variables, aliases, and man pager
50-repository-check.sh Interactive local chezmoi-status warning
60-containers.sh Distrobox workbox helper and Podman aliases
70-prompt.sh Git, jobs, container, and exit-status prompt
80-path.sh PATH ordering and deduplication
bgjobs Background-job helpers
git Git aliases
taskwarrior Taskwarrior inbox alias
toolbox.rc Toolbox first-run setup
toolboxes/workbox.rc Software installed by the workbox Toolbox setup
zig Zig standard-library discovery
zz-ghostty.sh Ghostty integration, after the other tracked modules

Toolbox's existing automatic software installation is deliberately retained. Sourcing Bash configuration inside a fresh Toolbox can therefore run sudo dnf and create /.first_run. Interactive shells also check chezmoi status with a five-second timeout and warn about differences in managed files. This check skips external refreshes, does not fetch Git remotes or maintain a custom cache, and never applies changes. If chezmoi is unavailable, the check is skipped. Neither behavior runs merely from chezmoi applying the configuration.

Name additional local modules so they sort before zz-ghostty.sh if Ghostty integration should remain last. Existing local modules are not removed.

Editing

For regular managed files, use the standard chezmoi workflow:

chezmoi edit ~/.bashrc
chezmoi diff
chezmoi apply

You can also edit the corresponding source files directly, then run chezmoi apply. Use chezmoi add ~/.config/example/config to manage a new file, or chezmoi re-add to capture changes made directly to installed regular files.

Neovim uses the same workflow: edit files under dot_config/nvim/ and apply, or use chezmoi edit on their installed paths. Add new configuration files with chezmoi add.

See tmux notes for the GNOME Alt-Space adjustment.