-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
Add -o bashdefault to register-python-argcomplete's output command #284
Conversation
Codecov Report
@@ Coverage Diff @@
## master #284 +/- ##
=======================================
Coverage 82.69% 82.69%
=======================================
Files 7 7
Lines 734 734
=======================================
Hits 607 607
Misses 127 127
Continue to review full report at Codecov.
|
argcomplete/shell_integration.py
Outdated
@@ -74,7 +74,7 @@ def shellcode(executables, use_defaults=True, shell='bash', complete_arguments=N | |||
''' | |||
|
|||
if complete_arguments is None: | |||
complete_options = '-o nospace -o default' if use_defaults else '-o nospace' | |||
complete_options = '-o nospace -o default -o bashdefault' if use_defaults else '-o nospace' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also include -o bashdefault
when use_defaults
is False to match the behaviour of the global completion script.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch. Added as requested.
Perfect, thanks! |
Released in v1.11.1, please test. |
Fix #67 (comment)
Add
-o bashdefault
toregister-python-argcomplete
's output command, so that individual command can complete the environment variables.