-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Fix unbound variables in shell completion #2999
Conversation
Thanks, but are you setting
|
Yeah, I like it when I'm able to see if a variable is not created yet, rather than printing nothing when echoing.
what do you mean by existing scripts? |
Many scripts in the wild are written with the assumption that
Making sure that a legacy script works with But anyway, as I said above, the patch alone won't make fuzzy completion work (i.e. |
I see the point. Well, It wont hurt to support both cases is it? The only thing to lookout out for sure is maintaining the way it is which can be solve by adding a little test script.
Got it working on my end now there seems a couple of little refactoring needed. Will push later after testing. Just wanna know what are your thoughts about this? |
Not just the fuzzy completion, none of the key bindings (CTRL-T, ALT-C, and CTRL-R) works with
The code will have things like But after all, if we can make things (key bindings and fuzzy completion of bash and zsh) work with |
Please allow me to push more commits to your branch. |
looks good to me, what do you think? |
Looks good to me too. Thanks for the work. |
when
set -o nounset
is enabledcompletion complains about these variables being unset:
orig_var
__fzf_no_space_commands