Homebrew bash completions not loaded #5956
-
Additional Info
Output of
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Not a bug. You're trying to load two versions of the same completion code, the system one just gets picked first. Unsetting So if you absolutely want to load the Homebrew version instead (you did install it, after all), you should probably uninstall your system completion package instead. If that's not an option (e.g. the system completion package is a dependency of other packages), then you'll have to pre-set that variable before the system completion package is loaded, then un-set it again afterwards. Something like this might work:
And if your next question is "won't completing system commands break if I uninstall the system completion package, or stop it from loading?", read the last bash-completion FAQ: What is the search order for the completion file of each target command? (Spoiler: it should still work, but read the answer anyway to understand why, and for the necessary knowledge to investigate why it's not working for you even though "@gromgit said it should work".) |
Beta Was this translation helpful? Give feedback.
Not a bug. You're trying to load two versions of the same completion code, the system one just gets picked first.
Unsetting
BASH_COMPLETION_VERSINFO
may move you forward, but because the two codebases are likely of different versions, there may be subtle bugs that eventually crop up. After all, the whole point of theBASH_COMPLETION_VERSINFO
test is to ensure that the completion code is only loaded once, so the upstream developers aren't really thinking about what can break if multiple codes are loaded, and of different versions besidfes.So if you absolutely want to load the Homebrew version instead (you did install it, after all), you should probably uninstall your system completion pac…