question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: bash completion

See original GitHub issue

It would be amazing if pipx had bash completion, so that users could do pipx up<tab> packag<tab> and stuff.

This would need two things:

  1. a bash-completion plugin that defines the possible completions
  2. a way for users to install it

Speaking of (2), I like the way rustup does it: the user is encouraged to run

mkdir -p ~/.local/share/bash-completion/completions
rustup completions bash > ~/.local/share/bash-completion/completions/rustup

So I suggest a similar pipx completions bash, maybe with an extra step (pipx completions bash --install) to automate the installation so the user doesn’t have to mkdir and redirect manually.

(The bash on the command line is because different shells have different syntax for user-defined completions.)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
cs01commented, Jul 28, 2019

argcomplete actually works well, so I created a PR https://github.com/pipxproject/pipx/pull/182.

0reactions
cs01commented, Jul 29, 2019

This is available in master now. Instructions can be seen by running pipx completions. It’s also available to test in the pre-release channel.

python3 -m pip install --user --pre --no-cache-dir -U pipx
Read more comments on GitHub >

github_iconTop Results From Across the Web

Feature request: bash completion · Issue #181 · pypa/pipx
I hereby volunteer to maintain the hand-written bash completion file wrt command-line changes. All I ask is that somebody pings me before a ......
Read more >
[Feature request] Improvement of Bash completion (#744) · Issues ...
Hi, we do not maintain the completion rules in cryptsetup project. But in general, cipher is not easy to add - there is...
Read more >
[Feature request] Bash-completion for runit sv
sv on Artix has no completion script. While you can always run ls /run/runit/service and use the single-letter shortcuts (or even RSM), ...
Read more >
Please bring back the package bash-completion to the initial ...
When I installed my base system, bash-completion was installed, as verified by ===> grep -i bash-completion ... Feedback Feature Request.
Read more >
Feature request - tab to autocomplete names in comments
In comments, I cannot “tab” to auto-complete a user's name when I try to @ them. This works just fine when managing user...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found