-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
"Homebrew Shell Completion" instructions not working on macOS 10.14.2 #5610
Comments
Hm, I found on both my macOS machines (both 10.14.2) and my Ubuntu 18.04 machines running Linuxbrew that the original I do not know under what circumstances the brew installs the completion files in Here is where my completions are automatically put on macOS 10.14.2: ❯ ls $(brew --prefix)/etc/bash_completion.d/
bat.bash git-prompt.sh
brew npm
brew-services pandoc
git-completion.bash youtube-dl.bash-completion edit: I normally use zsh and do not have deep knowledge of bash... |
I think this may be the difference between the |
Yes, there may be some confusion from bash-completion package vs auto installed completion files. https://docs.brew.sh/Shell-Completion is talking about the auto installed completion files, so I assume it is |
One should source only one file: $(brew --prefix)/etc/profile.d/bash_completion.sh This file checks that Bash has the right version and then sources the right
If you have
This |
But why does @samuela not even have a As for the docs, I wonder if the While we're here, why does it recommend to use: |
@maxim-belkin thanks for your knowledge. However I don't have that file:
|
$ brew list bash-completion
/usr/local/Cellar/bash-completion/1.3_3/etc/bash_completion.d/ (180 files)
/usr/local/Cellar/bash-completion/1.3_3/etc/profile.d/bash_completion.sh
/usr/local/Cellar/bash-completion/1.3_3/etc/bash_completion
$ brew list bash-completion@2
/usr/local/Cellar/bash-completion@2/2.8/etc/profile.d/bash_completion2.sh
/usr/local/Cellar/bash-completion@2/2.8/share/bash-completion/ (657 files)
/usr/local/Cellar/bash-completion@2/2.8/share/cmake/ (2 files)
/usr/local/Cellar/bash-completion@2/2.8/share/pkgconfig/bash-completion.pc @iandol what does |
I have neither of them installed on my macOS system; I only have the default auto-installed completion files. |
Then you shouldn't be surprised that you don't have |
@maxim-belkin Please note what I wrote above:
Would be good to have something that handles |
Currently, the situation is as follows:
Both Our options
|
I do in fact have that directory on my system. I think bash was complaining because that directory has no file named "*". |
Bash translates Brew installs its own completions in
|
@maxim-belkin Could you suggest a version that will work for the docs even if none of these files or directories exist? |
sure... |
I've opened #5625 to improve these instructions. Let me know what you all think. |
I’m traveling today. Will leave my comments as soon as I get back.
…On Sun, Jan 27, 2019 at 7:49 AM Mike McQuaid ***@***.***> wrote:
I've opened #5625 <#5625> to improve
these instructions. Let me know what you all think.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5610 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AMhAT2MH47Vk7n3kNC7PDQIR8fcCotZAks5vHa5vgaJpZM4aTDaB>
.
|
Great, thanks @maxim-belkin. |
@MikeMcQuaid — if we think @samuela's empty folder is not a totally isolated incident, is it worth to also check the directory is not empty, something like |
I followed the bash instructions here: https://docs.brew.sh/Shell-Completion but kept getting the error
which isn't so cool. Replacing it with
works just fine however.
The text was updated successfully, but these errors were encountered: