Repository navigation
DOTFI-25: Enable zsh-completions via omnishell - #39
Merged
JtheGunner merged 3 commits intoNov 28, 2026
Merged
Conversation
…are permissions Turn on [modules.zsh-completions] (omnishell 0.9.0, put on fpath before compinit) and raise OMNISHELL_MIN_VERSION to 0.9.0. compinit rejects completion directories that group or others can write to, and Homebrew's share/ and share/zsh/ are group-writable on some installs. A new bootstrap step drops the group/other write bit there, only on Homebrew, only for directories the user owns and only while the module is on; other directories are reported with the command to run. The step is switched off with fix_completion_permissions = false or DOTFILES_FIX_COMPLETION_PERMISSIONS=0.
The path comes from find, so it is data. Print it with printf %q so the suggested command stays one safe line, and test an unusual directory name. Also assert that omnishell/config.toml enables the zsh-completions module.
GNU stat treats -f as filesystem status and exits 0, so the BSD form returned garbage on Linux and every permission check failed in CI. Try -c first, which BSD stat rejects, then fall back to -f.
JtheGunner
deleted the
chore/DOTFI-25-enable-zsh-completions-via-omnishell
branch
November 28, 2026 07:43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
YouTrack: https://youtrack.xn--wrm-hoa.li/issue/DOTFI-25
Enable the omnishell
zsh-completionsmodule (omnishell 0.9.0) and have the bootstrap fix the Homebrew directory permissions that zsh'scompinitrejects.Changes
omnishell/config.toml: enable[modules.zsh-completions];OMNISHELL_MIN_VERSIONis now 0.9.0.fix_completion_permissions(beforeapply_omnishell):chmod go-wonshareandshare/zsh(recursively, directories only) when they are group- or world-writable. It runs only with Homebrew, only while the module is on, and only for directories the user owns; others are reported with a quotedsudo chmodcommand. A second run changes nothing.[bootstrap] fix_completion_permissions(defaulttrue) andDOTFILES_FIX_COMPLETION_PERMISSIONSto switch the step off.config.toml.exampleand the settings schema updated.Test plan
tests/test-*.shindividually: all pass (tests/bootstrap-smoke.shleft to CI).tests/test-optional-parts.sh: permissions fixed, idempotent, outside directories untouched, file/environment switch, invalid value, module off, no Homebrew, foreign owner, unusual directory name, config enables the module../bootstrap.shon a Homebrew machine with a group-writable/opt/homebrew/shareand open a new zsh; no "insecure directories" warning should appear.