Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [auto-completion]

Anything related to automatic completion of path/file/folder names or commands such as the ones provided by bash-completion package

9
votes
0answers
64 views

Bash Tab-autocompletion inside command substitution “$( … )” [duplicate]

I am using Bash's Tab autocompletion quite often, but when I'm inside a Bash command substitution structure like in the example below, it breaks and only returns an error. Let's assume I want to find ...
2
votes
1answer
184 views

How to change keyboard layouts in Ubuntu Touch with more than two layouts configured?

In my system settings I configured 4 keyboard layouts. But when using the touch keyboard I can only switch between two of them. That also excludes word completion for the missing ones. Did I miss ...
2
votes
2answers
731 views

Git bash autocomplete does not work for all — params

I tried to Tab autocomplete git reflog --<tab> and I could not get a list of parameters. However, the same works for git stash --<tab>. git stash -- --all --keep-index ...
2
votes
1answer
425 views

Why doesnt tab autocomplete to file?

I have the file analysis6_1.py So I entered in terminal python ./ and used tab autocomplete. Since I wanted to execute analysis6_1.py I entered a and pressed tab again. However now analysis6_1 is no ...
1
vote
0answers
322 views

Autocomplete SSH bash: export: `-a': not a valid identifier

When I try to autocomplete using double TAB, I get this error: bash: export: `-a': not a valid identifier This mainly happens when trying to autocomplete ssh routes. However sometimes it fails to ...
1
vote
2answers
516 views

Bash tab completion script

I have pass installed and working. However, I cannot get the tab completion to work. I have placed the tab completion script in /usr/share/bash-completion/completions/. The script is called password-...
10
votes
1answer
412 views

No tab completion with asterisk *

I am not able to tab complete from the command line in gnome-terminal when I have an asterisk in the command line. Default shell is bash, using gnome-terminal. For example, This works to copy a ...
1
vote
1answer
424 views

How can I make bash completion (tab auto-complete) match a particular command first?

I develop using Python on Ubuntu and so I use the workon command (from virtualenvwrapper) a lot to switch virtualenvs. Previously, workon was the first tab-completion match for "wo", so I could type ...
2
votes
1answer
127 views

How to set up bash autocompletion to deal with file names like “./foo=bar/x=y.txt”?

When I start typing a file name that contains an equal sign, autocompletion with [tab] shows a strange behaviour: ls ./foo[tab] # autocompletion to "./foo\=bar" <- ok ls ./foo=[tab] # ...
7
votes
1answer
1k views

enabling auto completion for apt-get install in docker (ubuntu 14.04)

I am running an ubuntu container in docker. I tried everything I found online, including: auto-completion does not work for "sudo apt-get install" but pressing "tab" still has no effect
3
votes
0answers
437 views

Auto-completion for latex doesn't work in Latexila and Geany [ubuntu 15.10]

I recently upgraded to Ubuntu 15.10. I noticed that auto-completion doesn't work anymore on Latexila so I tried to use Geany with Latex plugin but the result is the same. I had a quick look on the ...
3
votes
0answers
133 views

Redirect 'complete' in bash functions and alias [duplicate]

tl;dr: Is there a way to use an existing auto completion function to also auto complete arguments to an alias or short function. Auto completion in bash is great but does not mix well with aliases ...
3
votes
1answer
656 views

Bash completion for custom command to complete static directory tree

I would like to add a custom completion spec for bash's Programmable Completion that does the following: whenever the command entered is foo, I would like to do filename/directory completion for the ...
7
votes
1answer
926 views

Select a particular result from completion suggestions

Let's say I have 3 files in a particular directory: abc.txt, aww.txt, ant.txt If I do: cat a (and press tab to see options) terminal will display the 3 file names: abc.txt, aww.txt, ant.txt Is there ...
0
votes
2answers
116 views

Is there a way to get the trailing '/' to appear when using cd with a symbolic link directory?

I'm using the bash shell and use lots of soft links. One minor but annoying behavior I observe is the fact that I need to hit tab twice to complete the name of a soft link to a directory. e.g. $ ...
1
vote
1answer
347 views

Bash auto-completion won't work for java command

I have a folder that has one java source (.java) and one java (.class) class file. I try to get the autocomplete functionality of bash by pressing <tab> after the java or java MyCl in order ...
2
votes
0answers
96 views

How do I add zsh completion for evince with djvu files?

I am using zsh (5.0.2). The auto-completion for evince only shows files of some predefined extensions, amongst which pdf and ps but not djvu. How to make zsh also autocomplete with djvu files on ...
12
votes
1answer
368 views

What does _expand do?

I was working with the shell, and by mistake I autocompleted with tab after writing _e, which resulted in _expand. What does this command do? I couldn't find an explanation online, the only ...
2
votes
2answers
420 views

libre office word completion not working

I am using ubuntu and in Libre office, the word completion option under Auto correct is not working. Please let me know the solution. I have ticked and selected "Enable Word completion" and minimum ...
2
votes
1answer
682 views

TAB press for auto-complete does not work for some service names [duplicate]

I can run following command on my Ubuntu 14.04.3 Terminal without any problem: sudo service network-manager restart [sudo] password for username: network-manager stop/waiting network-manager start/...
1
vote
2answers
124 views

How can I iterate over shell function completions and alias completions before external command completions in zsh?

As it stands when I hit TAB to iterate over possible completions for a partial command external command completions are iterated first: user@user-X550CL ~ % apt Completing external command apt ...
3
votes
2answers
244 views

Terminal autocomplete functionality can only match from the beginning?

For example, if I type in "apt-"and press tab,I can find "apt-get" below.But if I type in "get", "apt-get" cannot appear. How can I do to match not only from the beginning?
0
votes
2answers
379 views

java linux terminal -cp auto-complete

I'm working with a java library which needs two files 'library.jar' and 'library-extensions.jar'. Whenever I try to include both of them separated by a colon (e.g. -cp "library.jar:library-extensions....
3
votes
1answer
2k views

How to remove all hyperlinks from a LibreOffice writer document ready for publishing?

I have a small book in LibreOffice writer format that I am preparing for self-publishing on Lulu. I have followed the instructions for pdf export that lulu have given for OpenOffice (given that ...
5
votes
1answer
2k views

System freezes during Bash auto-completion with Tab or Ctrl+R

It started about a week ago, don't know why. Now, when I type something like cd somedir and click Tab, my system completely freezes for about 10 seconds. I can move the cursor but can't switch between ...
1
vote
0answers
80 views

Making tab completion look anywhere in the word

This completion mode probably has a name, I just don't know what it is. In Sublime Text the auto complete works in a way that the typed letters are searched for in the same order but they are not ...
0
votes
1answer
367 views

tab-completion only works for table names (mysql 5.5 on ubuntu 14.04)

I'm used to having tab-completion for mysql keywords, database names etc in mysql, but in my freshly installed mysql (via 'apt-get install mysql-server') it only works for table names, not database ...
1
vote
1answer
189 views

How to fix search locations in settings

After upgrade to 15.04, the auto-complete for location search in settings -> Time & Date stopped working: Same problem with adding locations to the clock, however, I'm unable to take screenshot ...
2
votes
2answers
3k views

terminal auto complete doesnot work in adb command

I'm using Ubuntu 14.04 (updated), in terminal, auto complete works well but when I'm using adb command in terminal, auto complete does not work anymore..
3
votes
2answers
1k views

bash: script/bash_completion_dog: No such file or directory

When I open my terminal, I get this message. I tried to correct my .bashrc file but could not find anything related to this error message. How do I resolve this? As suggested by terdon, I tried the ...
1
vote
2answers
2k views

How to auto-complete commands by typing first letter?

In the terminal, how can I show history while typing? Is this possible? what is the library that I have to install? I think this will boost my productivity while using the terminal, currently I ...
3
votes
1answer
335 views

How does one get tab-completion in gsettings from zsh?

I notice that when using the bash shell (for example) the gsettings command has tab-completion; but when I use the Z shell (zsh) gsettings has no tab-completion. How can I enable it?
1
vote
1answer
378 views

How can I get auto-completion working via xrdp?

I wanted to connect via xrdp from my windows 8.1 machine to my Ubuntu 14.04 LTS 64 Bit Server . It works fine now, big fun. The only Problem I experienced is that when I want to use autocomplete via ...
17
votes
1answer
10k views

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 ...
1
vote
1answer
759 views

Auto-complete in Ubutnu 14.04 terminal

How can I replace TAB with CTRL+SPACE for auto-complete in Ubuntu terminal?
44
votes
3answers
113k views

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, ...
0
votes
2answers
442 views

bash autocomplete behaving strangely after update

Since bash was updated very recently, when I try to autocomplete by tabbing during a cd I get the following... tony@tony-HP:~$ cd Mucword=1 words[0]=${!ref}${COMP_WORDS[i]} words[1]=${!ref}${...
3
votes
1answer
5k views

Slow bash tab completion

My bash shell's tab completion is very slow, usually taking 1-2 seconds per completion. This only seems to happen when I'm using my laptop from work. Tab completion is very speedy when using my laptop ...
0
votes
1answer
110 views

ubuntu file manager: text input for file names (with autocomplete)

I use the default ubuntu file manager. Sorry, I can't give you exact application name, since I could not find it. The german "about" messages just says "Dateien" (german for "Files"). I don't see a ...
4
votes
2answers
734 views

Shell gives no prompt if auto completion is enabled (blinking cursor instead)

I tryed to enable shell autocompletion uncommenting the following lines in my .bashrc: # enable programmable completion features (you don't need to enable # this, if it's already enabled in /etc/bash....
0
votes
1answer
641 views

Autocomplete filename in script

I have been searching for a solution to this problem for a while. I am trying to find a way to use autocomplete for more than just commands, eg: for files inside the current folder. One possible use ...
0
votes
1answer
310 views

How to create a new user defined command to kill processes using process name?

Suppose I wanted to kill firefox , I just write pidof fi(press tab)refox (appears on its own) , then I write ' kill 'id given by pidof' ' on terminal. I know that I can write 'kill `pidof firefox` ' ...
0
votes
2answers
535 views

cvs autocomplete not working

I'm running Ubuntu 14.04. When I'm on the server via Putty (ssh), the autocomplete is not working for the cvs commit ... or cvs update ..., although for other commands like nano, it's working fine. ...
16
votes
5answers
9k views

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 ...
1
vote
1answer
341 views

Upstart sub-command tab completion with zsh

I've just recently switched to ZShell, and am loving it so far. One issue I'm having however is that my init.d or upstart scripts used to have tab completion for their subcommands, but now it doesn't. ...
0
votes
1answer
52 views

How to get autocompletion with “>|”?

When trying to empty a text file with >| filename why doesn't bash's autocomplete work for the file name? Is there anyway to allow autocompletion like any other terminal command?
5
votes
1answer
759 views

How can you mirror an autocomplete function in your own aliases (in 14.04)

I have a bunch of aliases that I've used on my 12.04 machine. example: alias pssh="tsocks ssh" alias pscp="tsocks scp" alias prdp="tsocks xfreerdp ..........SOMETHING ...." These aliases are ...
20
votes
2answers
11k views

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 ...
0
votes
2answers
1k views

Why auto complete does not work for directories in terminal ?

I am using Ubuntu 13.10. While i was using previous versions of Ubuntu, I was able to auto-complete the directories names, even multiple times in a single command. I am not able to the same now. As ...
1
vote
1answer
351 views

Tab doesn't auto complete on user “minecraft” but completes with root

On my user "minecraft" whenever I hit the tab key it just indents instead of auto completing. It works fine on root though. Output of getent passwd minecraft: minecraft:x:1001:1001::/home/minecraft:/...