Skip to content

fix: install zsh completion into an existing fpath directory#12

Merged
stiermid merged 3 commits into
masterfrom
fix-zsh-completion-fpath
May 7, 2026
Merged

fix: install zsh completion into an existing fpath directory#12
stiermid merged 3 commits into
masterfrom
fix-zsh-completion-fpath

Conversation

@stiermid
Copy link
Copy Markdown
Owner

@stiermid stiermid commented May 7, 2026

No description provided.

stiermid added 3 commits May 7, 2026 10:43
--install-completion now queries the user's $fpath via `zsh --no-rcs`
and picks the first writable user-local directory already in it, so
the script is loaded without any .zshrc changes. Falls back to the
XDG path (~/.local/share/zsh/site-functions) if no suitable directory
is found.
--no-rcs skips .zshrc, so oh-my-zsh fpath entries were never visible.
Using -i loads the full user environment, so completions are installed
into a directory zsh already knows about (e.g. ~/.oh-my-zsh/completions).
@stiermid stiermid merged commit d76e473 into master May 7, 2026
@stiermid stiermid deleted the fix-zsh-completion-fpath branch May 7, 2026 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant