Troubleshooting
Bootstrap fails on a fresh machine#
- Verify prerequisites — the bootstrap assumes core tools are present. See the Prerequisites table in the README and ensure they are installed first.
- Linux (Debian/Ubuntu):
sudo apt install -y git zsh- Windows: install PowerShell 7+ and Git, then run frompwsh - Clone first, run after — avoid
curl | bashpipelines. Clone the repo, inspectscripts/setup/setup.sh/scripts/setup/ooodnakov.sh(or the PowerShell counterparts underscripts/setup/), then run the entrypoint directly:
bash
git clone https://github.com/ooodnakov/ooodnakov-config.git "$HOME/src/ooodnakov-config"
cd ooodnakov-config
./home/.config/ooodnakov/bin/oooconf install
- Check the log — on first run, setup writes a log file under
~/.local/state/ooodnakov-config/logs/. The latest run is symlinked assetup-latest.log.
Missing tools after install#
oooconf(oro) not found — setup linksoooconfand aliasointo~/.local/bin(Unix:oooconf,o; Windows:oooconf.ps1,oooconf.cmd,o.ps1,o.cmd). Ensure that directory is on yourPATH. New shell sessions pick it up automatically.scoopor a scoop-installed app not found on Windows — scoop keeps every shim (includingscoop.cmd) in%USERPROFILE%\scoop\shims. The installer adds that directory to the userPATH, but any tool that rewrites the userPATHcan drop it again. The PowerShell profile re-adds it for the session when the directory exists; to make it visible to non-PowerShell programs, prepend%USERPROFILE%\scoop\shimsto the userPATH.- Optional dependency not installed — run
oooconf depsto see the interactive picker (requiresgum). Withoutgum, a text prompt lists available keys (fromoptional-deps.toml). Useoooconf deps <key>for specific tools. - A tool is listed as "install attempted" but not present — the installer respects your consent prompt. Re-run
oooconf deps <key>to retry, or install the tool manually. - In WSL, a tool resolves to a Windows host binary — binaries installed on the Windows host are exposed to WSL as
/mnt/<drive>/...paths.oooconftreats those as not installed inside the distro, sooooconf deps <key>installs a native Linux copy instead of silently using the host binary, andoooconf doctorreports them underdependencies.native(for examplebun -> /mnt/c/.../bun). Windows-only binaries are still reachable inside WSL by their.exename (tool.exe), not the bare command.
oooconf deps --latest update warnings#
--latest runs Topgrade after installing selected dependencies. It forwards
GITHUB_AUTH_TOKEN (falling back to GITHUB_TOKEN) for GitHub release API
requests, skips Topgrade's self-update, and retries failed update steps twice.
Topgrade failures from individual package managers are reported as warnings so
successful dependency installation can finish. Inspect the foreground output
or the latest setup log; set OOODNAKOV_DEPS_LATEST_STRICT=1 when automation
must fail on any Topgrade step failure.
PowerShell exits immediately in WezTerm on Windows#
The managed WezTerm config launches pwsh.exe through PATH, supporting MSI,
Microsoft Store, and portable installations. If the exit message still names
C:/Program Files/PowerShell/7/pwsh.exe, check that WezTerm loads the managed
config and remove stale default_prog overrides from
~/.config/ooodnakov/local/wezterm.lua. Restart WezTerm after changing PATH.
Run Get-Command pwsh.exe in a working PowerShell session to check resolution.
Compare pwsh.exe -NoLogo -NoProfile with pwsh.exe -NoLogo: if only the latter
fails, inspect the profile's startup errors. CloseOnCleanExit merely keeps the
failed pane visible; changing it does not fix the shell startup.
WezTerm right status shows the local host inside SSH#
The right status keeps the host visible even when the pane has no current directory. It resolves the host in this order:
- a remote OSC 7 working-directory host, which also handles nested SSH;
- the destination of a foreground
sshprocess, including-p,-J,-o, attached short options,ssh://destinations, andssh.exe; - the matching
ssh_domainsentry from the effective WezTerm config; - the local hostname.
When SSH does not report a remote working directory, the status shows the SSH destination and omits the local path instead of displaying a misleading local cwd. Run the deterministic status-bar regressions after changing this logic:
lua tests/test_wezterm_right_status.lua
Default zsh prompt after install#
If zsh opens with the default prompt, check the managed shell runtime:
oooconf doctor
oooconf install
oooconf doctor validates that the pinned Oh My Zsh, Powerlevel10k, and zsh plugin checkouts exist under ~/.local/share/ooodnakov-config/ and contain the files sourced by the managed profile. On Linux it also fails when zsh or docker is missing and prints the minimal toolset hint (brew, node, pnpm, bun, bat, eza, zoxide, lazydocker, lazygit, oh-my-pi) with the exact oooconf deps <keys> command for whatever is absent. Docker Engine itself is not installed by the catalog: follow docs/docker-install.md for Ubuntu and Arch, then run oooconf deps docker to enable the units. oooconf install retries failed git syncs, including an HTTP/1.1 fallback for transient GitHub TLS/HTTP failures.
To switch only zsh between Powerlevel10k and Oh My Posh, run oooconf shell prompt p10k or oooconf shell prompt ohmyposh and open a new zsh session. To reduce prompt verbosity across managed prompt engines, run oooconf shell prompt-style concise; restore the full layout with oooconf shell prompt-style verbose.
Git Bash still starts bash (or lost zsh after a Git upgrade)#
Git Bash windows start zsh only when /usr/bin/zsh exists inside the Git for Windows installation. If it is missing (never installed, or a Git for Windows upgrade wiped it):
pwsh -NoProfile -File scripts/setup/setup.ps1 deps zsh
The install is idempotent and safe to re-run; the pinned MSYS2 package is re-downloaded, re-verified, and re-merged. To keep plain bash for a session, set OOODNAKOV_GITBASH_ZSH=0 (per invocation: OOODNAKOV_GITBASH_ZSH=0 bash gives a raw bash subshell inside zsh). Non-interactive bash (git hooks, scripts) is never replaced.
If the merge step cannot write to the Git directory and administrator approval is declined, the verified files stay staged under ~/.local/share/ooodnakov-config/tools/zsh-gitbash/; re-run the command and approve the elevation prompt to finish.
Powerlevel10k git status or prompt issues under Git Bash#
p10k's gitstatus daemon has best-effort MSYS2 support. If git status segments misbehave or the prompt feels slow in Git Bash, switch the managed zsh prompt to Oh My Posh (first-class on Windows):
oooconf shell prompt ohmyposh
Also make sure the terminal font is a Nerd Font. Setup installs the bundled Meslo fonts per-user and Git Bash (mintty) gets Font=MesloLGSDZ Nerd Font Mono from the managed ~/.minttyrc — if icons still look wrong after reopening Git Bash, check ls ~/.minttyrc resolves to the managed link. Windows Terminal: Settings → Appearance → font face (the same MesloLGSDZ Nerd Font Mono family works).
git-prompt.sh obsolete warning in Git Bash zsh#
Git's bash-oriented prompt helper prints ERROR: this script is obsolete, please see git-completion.zsh when zsh starts. Silence it by creating an empty file:
mkdir -p ~/.config/git && touch ~/.config/git/git-prompt.sh
Completion generation issues#
- Completion files look stale — run
oooconf completions(oroooconf completions --dry-runto preview). This regenerates local autogen zsh completions underhome/.config/ooodnakov/zsh/completions/autogen, prunes stale autogen files, refreshes trackedoooconfcommand completion scripts, and rebuilds the PowerShell tool-completion cache under~/.cache/ooodnakov-config/completions. The PowerShell cache step is Windows-only and reports a skip on Linux/macOS even whenpwshis installed. - A specific tool completion is missing — the autogen generator only emits entries for binaries currently on
PATH; install the tool first, then re-runoooconf completions. - Manifest parse errors — verify
scripts/generate/tool-completions.tomlkeeps argv as arrays and maps each zsh entry to an_nameoutput plusprovidescommands.
y prints Error: Lua runtime failed#
Yazi aborts before drawing when a plugin loaded from home/.config/yazi/init.lua is missing or throws:
Error: Lua runtime failed
Caused by:
Failed to load plugin from ".../plugins/omz.yazi/main.lua"
- A plugin directory is empty after a fresh clone — plugins are tracked files, not git submodules, so
git pull(or re-runningoooconf link) repopulates them. Verify withls ~/.config/yazi/plugins/*/main.lua. - The prompt header is missing or shows the wrong prompt —
init.lualoadsomz.yazion non-Windows hosts to render the real zsh prompt (Oh My Zsh themes, Powerlevel10k, and the oh-my-posh zsh mode) and needs a workingzsh. Windows PowerShell sessions skip the Yazi header. Switch the zsh prompt withoooconf shell prompt p10k|ohmyposh, then restart Yazi. - Anything else —
init.lualoads every plugin throughpcall, so a broken plugin now shows ayazi pluginnotification and leaves the file manager usable instead of killing it.
Stale or broken symlinks#
Managed config is linked into ~/.config. If something is misbehaving:
Managed link transaction failed— the failing operation and the underlying helper error are reported with the wrapper message.oooconf applyvalidates link creation before mutating anything, so a permission problem leaves the profile untouched.- Windows cannot create symbolic links — Windows requires
SeCreateSymbolicLinkPrivilege. Enable Developer Mode (Settings → System → For developers) or runoooconf linkfrom an elevated PowerShell; otherwise every new managed link fails withWinError 1314. Another apply or rollback is active— anotheroooconfprocess holds~/.local/state/ooodnakov-config/apply.lock. If no such process is running, the previous run died before recording itself (or its process is gone); the next run reclaims the stale lock automatically. Delete the lock directory only if the message repeats with a live process id.- OMP MCP servers show up as modified tracked files — an older install linked
~/.omp/agent/mcp.jsonstraight into the repository. Runoooconf link; it rewrites that link into a real local file containing only your machine-specific servers, and links the shared base as~/.omp/agent/.mcp.json. Add new servers with/mcp addor edit the local file afterwards. Symlink loop from ~/.omp/agent/...— a legacy whole-directory link (for example~/.omppointing back into the repository) makes a child target resolve onto its own source.oooconf linknow rejects that plan before mutating anything. Close OMP, follow the one-time OMP migration, then re-runoooconf link. If an older run already replaced a tracked source with a self-referential link,oooconf rollback --lastremoves the loop and restores the file from the recorded backup.
Managed-link applies are journaled. To apply only the validated link transaction or undo the latest eligible transaction:
oooconf apply
oooconf rollback --last
If apply is interrupted, oooconf doctor reports an incomplete transaction. Run
oooconf rollback --last to resume safe reverse-order cleanup. Rollback never
deletes a target that no longer matches the link recorded in the journal and never
overwrites an existing target while restoring a backup. If it reports manual
recovery, inspect the referenced journal under
~/.local/state/ooodnakov-config/transactions/, preserve the user-created target,
and restore the recorded backup_path manually if appropriate.
For automation, run oooconf doctor --format json. An interrupted transaction is
reported with stable check ID transactions.incomplete, error severity, and a
rollback remediation. oooconf status --format json reports the same state while
remaining suitable for inventory workflows that should not fail merely because a
health check is unhealthy.
Transaction journal retention and cleanup#
Transaction journals live under
${XDG_STATE_HOME:-$HOME/.local/state}/ooodnakov-config/transactions/. Backup paths
are recorded per operation and normally live under
~/.local/state/ooodnakov-config/backups/ (or OOODNAKOV_BACKUP_ROOT when set).
There is intentionally no automatic retention window: journals are small, and
deleting one can make its backups impossible to associate with rollback.
Use this sequence for safe manual cleanup:
- Run
oooconf doctorand resolve every incomplete orrollback_failedtransaction. Never routinely prune a journal inapplying,failed, orrollback_failedstate. - Open the journal and confirm its
statusiscompleteorrolled_back. For a completed transaction, explicitly decide that rollback is no longer required. - Review every non-null
backup_path. Preserve anything that is still the only copy of user data. Delete only reviewed backup paths belonging to that journal. - Remove the journal only after its backups have been restored, archived, or deliberately removed. Never delete the whole backups or transactions directory based only on age.
- Run
oooconf doctoragain. A subsequent idempotentoooconf applyshould report no changes when managed links are healthy.
The active apply.lock directory is removed automatically. Do not manually remove
it merely because an apply is slow. After a confirmed process crash, preserve the
transaction directory and run oooconf doctor; a later apply can reclaim a stale
lock whose recorded process no longer exists.
Snapshot import is rejected#
Run oooconf snapshot inspect FILE before applying it. Imports are rejected when
the schema version is unsupported, fields or preferences are unknown, preference
values are outside the safe allowlist, or recorded capabilities no longer match the
named profile. Re-export the snapshot with the current checkout rather than editing
capability lists by hand.
# Check all managed links and key commands
oooconf doctor
# Remove all managed links without restoring backups
oooconf remove
# Remove managed links and restore the latest backups
oooconf delete
# Re-apply from the repo
oooconf install
Individual link issues show up in oooconf doctor as [missing] entries. The backup directory is ~/.local/state/ooodnakov-config/backups/, with timestamped subfolders.
Local override conflicts#
Two places can introduce machine-specific env vars:
| File | Source | Overwritten by oooconf secrets sync? |
|---|---|---|
~/.config/ooodnakov/local/env.zsh |
rendered from template | No — the # --- LOCAL OVERRIDES START/END --- block is preserved |
~/.config/ooodnakov/local/env.ps1 |
rendered from template | No — same LOCAL OVERRIDES block |
If your local value disappears after oooconf secrets sync:
Make sure it sits between the START and END markers. Lines outside that block are overwritten on every sync.
If sync fails with BW_SESSION is not set:
You need an active Bitwarden session. Either:
eval "$(oooconf secrets unlock --shell zsh)"
Or set BW_CLIENTID, BW_CLIENTSECRET, and BW_PASSWORD in your local env — the sync will auto-unlock using those credentials.
If a secret resolves to the wrong value:
Check the template entry at home/.config/ooodnakov/secrets/env.template. The bw://item/<id>/... reference must match the correct Bitwarden item ID. Update the template and re-sync.
Secrets sync errors#
| Symptom | Cause | Fix |
|---|---|---|
BW_SESSION is not set |
Vault not unlocked in this shell | Run oooconf secrets unlock and eval/source the output |
Bitwarden CLI (bw) is not installed |
bw missing from PATH |
Run oooconf deps bw or install manually |
failed to resolve KEY from Bitwarden |
Item ID invalid or vault locked | Verify the item ID in the template, then unlock |
mac failed. printed per item |
bw CLI older than 2024 (key format mismatch); it cannot decrypt any item even with a correct master password |
Run oooconf deps bw to install the pinned CLI (bw --version), then oooconf secrets unlock |
Template not found |
Repo root resolved incorrectly | Pass --repo-root /path/to/repo explicitly |
Run oooconf secrets doctor for a full prerequisite check.
Cross-platform WM modifiers (Win/Cmd) for komorebi + OmniWM#
Windows (komorebi)#
whkdcan bindlwincombos directly (for examplelwin + h/j/k/l).- If your keyboard/IME/tooling eats Win combinations, run komorebi with AutoHotkey instead of whkd:
oooconf wm komorebi stop --barstops the full stackoooconf wm komorebi start --bar --ahkstarts with AutoHotkey instead of whkd- Or manually:
komorebic stop --whkd/komorebic start --ahk - AutoHotkey is optional; use it when Win hotkeys are unreliable on your machine.
macOS (OmniWM)#
- macOS has no AutoHotkey-equivalent requirement for OmniWM hotkeys.
- OmniWM captures shortcuts via macOS Accessibility permissions and its own hotkey system.
- For reliable multi-monitor/workspace behavior, turn off “Displays have separate Spaces” and log out/in after changing it.
- If you want hardware-level key remaps (outside OmniWM), use Karabiner-Elements as an optional separate layer.