335 questions
0 votes
1 answer
76 views
History navigation, autocomplete does not work in bash on Ubuntu24 WSL2 [closed]
I created a fresh WSL2 container of Ubuntu-24.04. Also, I created a new default user there that has different name than my Win user, moved the container file to another location. In general, the ...
0 votes
1 answer
70 views
Match bash completions against one set of values, but insert a different associated value for each match value
How can bash completions match against one set of values, but insert a different associated value per match value? e.g., I want to match against, and display, text names, but I want to insert a ...
1 vote
1 answer
168 views
zsh completion function (compdef) not completing _arguments
I am writing an autocomplete function for my personal cli. Here below is a reduced version of my compdef. As I type my-cli <TAB> I can see the subcmd autocompleting. As I type my-cli macos <...
0 votes
0 answers
67 views
Is it possible to manually invoke a specific bash-completion function on the command line?
I have several scripts that expect a git branch as argument, rather than specifying the completion mechanism for all of these, is it possible to invoke a specific "completion activity" ...
0 votes
1 answer
49 views
Bash completion for a program in a specific directory
If I have a program located in /a/prog and /a is not in PATH, is it possible to specify a bash completion for running ./prog in /a so that it doesn't affect any other program named prog located ...
2 votes
2 answers
311 views
How to include completions for one command in those of another
I have a command ts which takes as its arguments a command and that command's arguments. I want tab-completion to "do the right thing", namely: When I type, for example ts foo<tab> ...
1 vote
1 answer
139 views
Bash completion in wrapper scripts
I have a program foo for which I've written a bash-completion script, and that all works fine. I have dozens of wrapper-scripts bar1, bar2 ... which just sets one of the command-line options #/usr/...
1 vote
1 answer
63 views
Git autocomplete custom command (not arguments after)
I've been trying to add an autocomplete for my custom command, "git extract-unmerged". I'm using git on Windows in git bash through MSYS2 if it matters. I created a bash script in $HOME/...