Skip to main content

All Questions

Tagged with
0 votes
1 answer
33 views

No space after option with bash completion

I'm trying to filter bash-completion suggestions. Here awf-gtk2 -s abc.png [TAB] display -h --help -s --screenshot (it's ridiculous) / and awf-gtk2 -s[TAB] add a space after -s (perfect), with: ...
luigifab's user avatar
  • 101
3 votes
1 answer
104 views

Why does tab autocomplete sometimes not work?

In bash (Ubuntu 24.10, but I guess this would apply to other versions/distributions) when you type in a console a command you can use TAB to autocomplete the filenames of the current directory. ...
Mark's user avatar
  • 795
1 vote
2 answers
266 views

How to get a file quicker in TAB:menu-complete binding?

In bash, when binding TAB with menu-complete, I can cycle through the current files in the lexicographical or alphabetic order. What if the file that I want is the last file in the order? How can I ...
Tim's user avatar
  • 106k
0 votes
0 answers
23 views

bash-completion doesn't work in Mignight Commander shell

Normal Ubuntu 22.04 install, bash-completion is installed and works in a normal shell.  For example, if I type "docker " and press TAB, it will show a list of Docker subcommands. If I now ...
AndreKR's user avatar
  • 1,198
4 votes
0 answers
108 views

Is it possible to tab complete by whole word in Bash

Suppose I have filenames as follows on my Linux system: $ ls -1 file-index-00012.txt file-index-00345.txt question.txt I start typing, where "|" represents the cursor: $ cat fil| If I ...
Huw Walters's user avatar
0 votes
1 answer
97 views

How can I disable the "You have new mail in..." message in bash complete?

I have cron tasks logging messages to the system mail periodically. Mail check is enabled, but I don't want to see these messages when I hit TAB in the middle of typing a command. Is there any way to ...
contrebis's user avatar
  • 101
0 votes
1 answer
65 views

Disable autocomplete but keep suggestions in Bash

I want disable autocomplete (pressing to Tab to complete my command automatically) on my Bash on Linux, but keep the double-Tab shortcut for showing suggestions, so that I can type the rest of the ...
manarinian's user avatar
3 votes
2 answers
397 views

Bash programmable completion (double tab) will not complete in home directory

To be clear, I have tried MANY other answers in this fourm and others and it does NOT work for me. /home/user is also in my PATH variable. In short, if I have a directory under my $HOME (/home/user1) ...
Zack Frizzell's user avatar
0 votes
0 answers
36 views

How to know which completion function is being called?

I want to type somethingTabTab and know exactly which completion function gets called, so that I can use that function for completion of aliases. This is to solve the following problem: git push -d ...
awvalenti's user avatar
  • 201
0 votes
1 answer
526 views

"_split_longopt: command not found" when trying tab-completion

For the past couple of weeks or so, I've noticed that, often, when I press the Tab key to try and complete a command in a bash shell in a terminal, I get an error message. It says: bash: ...
einpoklum's user avatar
  • 10.4k
2 votes
1 answer
62 views

complete/compgen fails to suggest when options contain ':' (colon)

I'm failing to get complete to offer full suggestions when the options in ${COMPREPLY[@]} contain a : character. Instead, it only offers the prefix that is common to all suggestions. Here's an ...
Stewart's user avatar
  • 15.4k
0 votes
0 answers
115 views

Bash Completion Settings Not Working as Expected

I am trying to get bash tab completion to work as I would like, but the options do not seem produce the results I would expect. I am using bash 4.2.46 [4.2.46(2)-release (x86_64-redhat-linux-gnu)], ...
ERROR_InvalidString's user avatar
5 votes
1 answer
66 views

Is it normal for "complete -p git" to error until I autocomplete git first?

If I restart my terminal, I get an error when I type this: $ complete -p git bash: complete: git: no completion specification But if I type git tab then run the complete command again, I get a ...
Daniel Kaplan's user avatar
1 vote
1 answer
156 views

Bash completion after quotation mark

I am experimenting with bash completion to write a general completion library in C associated with command line parsing and stumbled in a behavior for which I can find no documentation. I am using the ...
user1542207's user avatar
1 vote
1 answer
58 views

Diagnose bash autocomplete issues

I have one binary on my system, fio installed via package manager which doesn't autocomplete files with tab once you've typed fio . I guess this means something must over overridding the autocomplete ...
BeeOnRope's user avatar
  • 559

15 30 50 per page
1
2 3 4 5
29