Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from nelhage:master #177

Merged
merged 3 commits into from
Jan 15, 2025
Merged

[pull] master from nelhage:master #177

merged 3 commits into from
Jan 15, 2025

Conversation

pull[bot]
Copy link

@pull pull bot commented Jan 15, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.1)

Can you help keep this open source service alive? 💖 Please sponsor : )

tokuchan and others added 3 commits January 14, 2025 11:18
The current version of the build system uses `pkgconfig` to discover the
location of the bash completion scripts. Typically, this script outputs
a directory under the `/usr` prefix. Unfortunately, if the user chooses
to override the build prefix with PREFIX, the BASHCOMPLETION variable is
not also updated.

In this commit, I propose to correct this issue by simply looking for
the `/usr` prefix and substituting it with the contents of `PREFIX`.
I've tested this approach using my `stow`-based "package" collection,
where I build commands with custom prefixes, and do not grant root or
sudo privileges when doing so. It appears to function normally for me.
Per [the bash_completion documentation](https://github.com/scop/bash-completion/blob/main/README.md), this is the preferred style as of new versions. It's also generally much simpler and more consistent with other options, so let's see if we can just switch over.
…in-Makefile

fix(Makefile): Make bash completion honor PREFIX
@pull pull bot added the ⤵️ pull label Jan 15, 2025
@pull pull bot merged commit e294304 into RogueScholar:master Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants