-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Autocompletion does not work #99
Comments
@eparis any tips? |
_init_completion is supposed to be included either with bash or with the bash_completions package... |
I guess we need to have it fail silently instead of letting users know they need bash-completions > version 1.90 (I think that's where it was added) I wouldn't want a noisy failure in a script loaded at login.... |
I could probably switch to _get_comp_words_by_ref which seems to be even older... _get_comp_words_by_ref: ver 1.2 was June 2010 I'll take suggestions, but it seems to me like Nov 2011 should recent enough support... |
In my case I was trying to get it running under zsh --- It runs fine in bash on my Ubuntu 14.10. I will close this as "my fault". |
I haven't looked at zsh, but it might be relatively easy to support, dunno..... |
this also causes problems under Mac OS using ~ > bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin14)
Copyright (C) 2007 Free Software Foundation, Inc.
~ > brew info bash-completion
bash-completion: stable 1.3 (bottled)
Programmable bash completion
https://bash-completion.alioth.debian.org/
~ > system_profiler SPSoftwareDataType
Software:
System Software Overview:
System Version: OS X 10.10.4 (14E46)
Kernel Version: Darwin 14.4.0 |
The only 'drawback' is that I don't have a Mac and don't use 5 year out of date bash-completion. So I don't know how to do it. _init_completion (and in turn __get_comp_words_by_ref) are incredibly complex functions I can't truly understand and so I will not copy them wholesale into our codebase (as then we have to maintain them, and I'm just not up to the task) If someone writes a 'simple' patch which adds compatibility further back, I'd be REALLY happy to take it. (where simple means I can understand it). I have no idea what is or isn't possible on a mac. Maybe it has _comp_words_by_ref and you can find a way to switch to that directly? |
In case anyone with mac stumble onto this issue, here is the fix: apache/openwhisk#2924 (comment)
It looks that for Mac users in addition of installing the bash-completion brew install bash-completion
|
Tried to generate Bash autocompletion for Hugo, but gets:
I don't see
_init_completion
anywhere in the source.The text was updated successfully, but these errors were encountered: