Anything related to automatic completion of path/file/folder names or commands such as the ones provided by bash-completion package
Questions tagged [auto-completion]
211 questions
254
votes
5 answers
Can I make Tab auto-completion case-insensitive in Bash?
Ubuntu's Terminal uses case-sensitive auto-completion, as would be expected for Linux.
But I think sometimes it would be more convenient to use a case-insensitive one instead, to save you having to be accurate while starting a name, and would…
mwfearnley
- 3,497
197
votes
8 answers
How to create script with auto-complete?
When I use program like svn and I type in Gnome Terminal:
svn upd
and hit Tab it's autocompleted to:
svn update
Is it possible to do something like that in my custom bash script?
UAdapter
- 17,967
103
votes
4 answers
Terminal autocomplete doesn't work properly
If I start typing a command like apt-g after hitting tab, the shell completes the command to apt-get, but for the second part of the command like install, if I enter some characters like insta, hitting tab, doesn't complete it to install.
Another…
Ravexina
- 57,256
79
votes
4 answers
`apt-get` autocompletion of package name is broken
At some moment, the apt-get install autocomplete was broken. It was very useful to me to see the names of packages available for installation when pressing Tab.
For example, if I would press the Tab key after sudo apt-get install ruby, all packages…
Вячеслав Логинов
- 1,201
60
votes
5 answers
Tab completion doesn't work for commands
I am trying to use tab completion for commands in Ubuntu 11.04 Beta 1, running all the latest updates, but it doesn't seem to work. (Though package bash-completion is installed)
Tab completion works correctly only for directories or files.
Any ideas…
Screatch
- 619
44
votes
4 answers
How to make terminal autocomplete when there are several files/directory?
If I have several directories, like:
afoo abar
sometimes my terminal will refuse autocomplete when I press tab (e.g. "cd a" then tab), and print the list of directories instead. Sometimes it even throws a noisy, annoying sound. Any idea how to make…
TifatulS
- 1,335
42
votes
7 answers
auto-completion does not work for "sudo apt-get install"
Okay a college of mine just showed me that you could do
sudo apt-get install
That it auto-completes the name of the package. Just for an example...
sudo apt-get install ged results in sudo apt-get install…
WG-
- 1,850
35
votes
8 answers
How to alias 'git' to 'g' so that bash-completion rules are preserved?
If I do this:
alias g='git'
I lose all completion rules (i.e. branches and remotes are no longer automatically completed when I hit TAB after typing, for example g push o).
Paweł Gościcki
- 1,442
31
votes
5 answers
Autocompletion doesn't work while logged as root
I have just came across something that is really bothering me. Autocompletion on ubuntu works like a charm but when I login as root, e.g. su I get tab autocompletion only sometimes.
Why does it work like that? Can one change that?
Patryk
- 9,416
22
votes
2 answers
Terminal, how to quit --More-- list
I use autocomplete a lot in the terminal, like for example for cp command. But sometimes, when I am putting in the directory for the cp command and I press Tab, the list of files is so long that Ubuntu spits out part of the list and then waits for…
Mr. Fegur
- 325
21
votes
1 answer
Bash Tab Completion: '-bash: unexpected EOF while looking for matching `)' -bash: syntax error: unexpected end of file
I'm trying to go into an irb session with specific environment variables from a file with this command:
$ env $(cat env.sh) irb
But when I try press Tab after I type env. to complete it, I get this following error:
$ env $(cat env.-bash: unexpected…
eldosoa
- 745
21
votes
3 answers
Does pip have autocomplete?
Pip has a long list of commands. Is there any way to use auto-complete by Tab in console (Bash)?
Yurij
- 605
20
votes
6 answers
Why does terminal auto complete sometimes not suggest anything for the `services` command?
Sometimes, when I type a command on the terminal, the terminal's autocomplete does not work, even if my command is not wrong.
For example, take look to this: sudo service vsftpd status sudo and service do not have any problem. I mean, when you type…
Mohammad Reza Rezwani
- 10,706
20
votes
2 answers
Can I enable bash-completion for the new apt command?
The new apt command, present in Ubuntu since 14.04, seems to be a really useful intersection of functionality between apt-get and apt-cache but the current version of bash-completion doesn't know about it... Which makes it a lot harder to use.
Is…
Oli
- 299,380
20
votes
1 answer
Bash auto_completion with Xubuntu and xrdp from windows
I'm using Xubuntu and connecting over RemoteDesktop with Windows 7.
Everything works fine, but the auto_completion in my bash doesn't work.
I checked the .bashrc file in my home directory and also the /etc/bash.bashrc.
I uncommend the lines below in…
nik the lion
- 303
- 1
- 2
- 4