Skip to content

Respect path passed to --with-zsh-completion-dir - #354

Open
sabrehagen wants to merge 1 commit into
RichiH:mainfrom
sabrehagen:zsh-completion-dir
Open

sabrehagen wants to merge 1 commit into
RichiH:mainfrom
sabrehagen:zsh-completion-dir

Conversation

@sabrehagen

Copy link
Copy Markdown

The ENABLE_ZSH_COMPLETION conditional is true for any value other than no, so passing a path to --with-zsh-completion-dir still installs to the default $datadir/zsh/site-functions. This makes it impossible to target directories such as Debian/Ubuntu's /usr/share/zsh/vendor-completions.

This picks the default only when the value is yes and otherwise uses the given path.

Tested with ./configure and make install DESTDIR=…:

Argument ZSH_COMPLETION_DIR
none ${datarootdir}/zsh/site-functions
--with-zsh-completion-dir=/usr/share/zsh/vendor-completions /usr/share/zsh/vendor-completions
--without-zsh-completion-dir not installed

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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