Skip to content
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

Register completion for multiple commands #246

Merged
merged 1 commit into from
May 8, 2018

Commits on Mar 15, 2018

  1. Register completion for multiple commands

    Shell startup files may contain lots of 'register-python-argcomplete'
    calls, for as many scripts as require it.
    
    However, this can have a significant impact on shell startup time,
    because each one requires starting a Python interpreter and invoking
    'complete'.
    
    Optimise this by allowing 'register-python-argcomplete' to accept
    multiple commands. In Bash, the whole list of completable commands
    can be passed to a single 'complete' call. Tcsh requires a separate
    'complete' call for each command, but we can at least avoid the
    overhead of starting Python each time.
    
    On my machine, the time to register ~10 completed scripts decreases
    from about 0.4s to 0.05s with this change.
    chrisdiamand committed Mar 15, 2018
    Configuration menu
    Copy the full SHA
    56649c5 View commit details
    Browse the repository at this point in the history