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

1
vote
0answers
24 views

How do I get prompt colours and auto-complete on 18.04 for a new user created with useradd?

I use Tilix, which is imo one of the best VTE based terminal emulators for Linux. If I create an Ubuntu 16.04 image on DigitalOcean, connect to it via SSH and then configure a new user (as below), ...
0
votes
0answers
19 views

chaning git checkout behaviour in zsh

I'm follwing this link on how to use git checkout auto-completion for only local branches. I first used it on my bash shell as follows (Used this link as a reference. Also, commented out the original ...
1
vote
1answer
20 views

What can mess up the order of the tab completion

I am experiencing a difference of behavior between my previous OS (Ubuntu Xenial) and my current one (Ubuntu Bionic). The short story is this: When using tab completion with cd, the order of the tab ...
0
votes
1answer
32 views

Git completion fails after updating to Ubuntu 18.10 Cosmic Cuttlefish

I recently updated to Ubuntu 18.10 and after that my git completion has been failing. Bash is able to complete the first command successfully, for example (I'll use ↬ to indicate TAB was used) $ ala↬...
0
votes
1answer
41 views

How to configure auto completion on docker-compose alias

I installed docker-compose, set up auto completion which works as its supposed to. However it does not work on aliases. Any ideas how to solve this?
8
votes
1answer
316 views

How do I control when bash auto-completion shows a paged list of completions?

In my previous linux installations the bash auto-completion has always worked without problems. If I wanted to do anything to files, giving a prefix of the filename and pressing tabulator listed all ...
0
votes
1answer
61 views

file name auto completion works for ls but not for vi

How come the filename auto-completion works for ls command but not for vi in my Ubuntu 16.04.5 LTS? (Xfce4, bash). I think it used to work but not now. From Matthieu's answer below, I tried the below....
1
vote
0answers
145 views

Tab auto-completion doesn't work for argument for a non root user on Ubuntu 18.04.1

For an ordinary user on Ubuntu 18.04.1 the tab key doesn't work for a command argument. For example, entering systemctl sta and pressing the tab doesn't produce a match for "start status". It works ...
3
votes
1answer
203 views

How to setup AutoKey for text auto-completion

How do I setup AutoKey to get the following result? I type a word like ubu in a text editor A window opens with the suggestion ubuntu I can select ubuntu through TAB-key ubu gets replaced with ubuntu
1
vote
1answer
61 views

Prompt has been changed after upgrade to 18.04.1 after using “su” to change user

Just updated to 18.04.1 I use Terminal only. When I do an su to one my users that runs a game, I only get a $ and no name of the user and does not show current location. Also, tab autocomplete ...
0
votes
0answers
33 views

Universal word autocompletion

I'm looking for a simple way to get universal autocomplete on words. It should mainly work in the browser and text-editor. Example: If you type Sta a window would appear with the suggestion ...
1
vote
1answer
167 views

Bash auto_complete .out error

I am using a customized dotfiles from a github repo. When I am trying to execute a c++ executable named a.out and try to use TAB Key after a.out (for arguments), I get the following error: bash: a....
0
votes
0answers
118 views

TextSuggest Universal Autocomplete Installation Error

I followed the instructions to install the autocomplete tool TextSuggest but now I'm stuck at this part: Run the command textsuggest-server in the background, and set it to run on startup. ...
1
vote
2answers
207 views

Autocomplete options for certain command in ubuntu terminal

I am running Ubuntu 18.04, and do most of my code editing using VisualStudio Code. To open a file from the terminal, I run the command code fileName.java Once I have compiled the java code, there is ...
1
vote
0answers
27 views

How to filter out selected records from /etc/hosts file from terminal prompts for ssh command

I have a problem with hints for the ssh command. When I press the tab key, the terminal displays all records from the /etc/host file in prompts. I use add-ons to block spam and advertisements in my ...
2
votes
1answer
94 views

Is there a way to make the bash auto-complete show a list with line for each entry?

when I want to see the content of a dir I use ~/ + Tab and it shows me .bashrc.swp .gitconfig .local/ ... Is there a way to make the results separated by newlines? i.e. ....
0
votes
1answer
206 views

What package is responsible for bash completion for systemd/systemctl on Ubuntu?

I have Ubuntu 16.04 installed locally, and it has bash completion for systemctl subcommands by default. But when I start an instance of Ubuntu Server 18.04 on Digital Ocean, there is no bash ...
0
votes
0answers
220 views

fix scp autocomplete in 18.04

in 16.04 there is no /usr/share/bash-completion/completions/scp and tab will work with scp and local paths in 18.04 there is a /usr/share/bash-completion/completions/scp and tab will fail with scp ...
0
votes
1answer
108 views

Tab completion not always working for ls command [duplicate]

If I stand in my home directory, press ls and then press Tab then I get a list of files. But if I try that with /etc/elasticsearch then I don't get a list of files. Is there some way to achieve what ...
3
votes
2answers
649 views

Does pip have autocomplete?

Pip has a long list of commands. Is there any way to use auto-complete by Tab in console (Bash)?
1
vote
0answers
23 views

getting synopsis inline [duplicate]

So this might be wierd question but is there anyway to get the synomposis of a command in the terminal? what I mean by this is that if I write for example find I would like the terminal to write out ...
3
votes
1answer
105 views

Why am I getting _parse_usage error on function invocation in bash?

So I was getting the following error: bash: _parse_usage: line 16: syntax error near unexpected token `(' bash: _parse_usage: line 16: ` -?(\[)+([a-zA-Z0-9?]))' bash: error importing function ...
1
vote
1answer
396 views

Autocomplete of file path does not work after “vim” in terminal

Steps to reproduce git clone https://github.com/MichinariNukazawa/vecterion_vge.git cd vecterion_vge input vim include/ tab input vim include/et_co tab What I expected to see show file list in ...
5
votes
1answer
65 views

Filter tab-completion per application by extension

Say someprogram needs only *.abc files as command line arguments. In terminal, when I do $ someprogram <tab> I'd like to only the *.abc files to be listed for tab auto-complete. How do I do ...
0
votes
1answer
84 views

How to install all packages suggested by **TAB** auto-completion?

Is there any way to install all packages shown by pressing tab? For example, I want to install all octave available packages. When I type # aptitude install octave and press TAB a list of packages ...
1
vote
1answer
985 views

Not able to detect DVD in ubuntu 16.04 . At which location DVD will display?

Not able to find DVD which is already inserted in pc. Kindly suggest the location where we will detect it. Version : ubuntu 16.04
0
votes
4answers
734 views

Bash auto completion

I want completion like in emacs that if there is only a sole completion to the command you are typing, than you don't need to type it all. For example: package ins is enough instead of typing the ...
1
vote
1answer
532 views

zsh apt-get autocomplete doesn't work with fake root

We're using fake root environment at work. Basically it is a bunch of directories which emulate apt-get and dpkg if some environment variables are set. I.e. you run apt-get install xxx and package xxx ...
3
votes
0answers
393 views

How to allow ZSH to autocomplete ZFS

System: I'm running Ubuntu 16.10 with ZFS and ZSH installed. Expected behaviour: As the root user, I can press tab to autocomplete zfs commands and paths. It works both in zsh and bash. As a non-...
3
votes
1answer
442 views

terminal autocomplete for ls doesn't go into the directory

When I attempt to tab-autocomplete an ls directory name, the autocomplete does not give the slash that allows me to type the next subdirectory. Instead, it gives me a space, making me have to ...
1
vote
1answer
44 views

How add/find options of a custom executable programm

Let's say I have a simple script in /usr/local/bin/myscript like #!/bin/bash case "$1" in start) start something ;; stop) stop something ;; status) ...
1
vote
0answers
276 views

ssh tab auto-complete causes bash: warning: setlocale

When I try to to use tab to auto-complete to finish a ssh (or scp) command, the following error appears on the console: -bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8) -bash: ...
0
votes
1answer
873 views

Disable autocompletion in Atom

So I just recently got into coding (Python) and I am using Ubuntu 16.04 and the Atom text editor. A very annoying feature is the auto-completion. For example, I type in x (a variable I set previously)...
3
votes
1answer
622 views

How to make tab completion append slash for directory symlinks?

My ~/Documents directory is a symlink: nathan@nathan-desktop:~$ stat Documents File: Documents -> /mnt/nathan/extended/Documents If I want to cd into the directory, I can type: c d space D o ...
3
votes
1answer
616 views

How to configure case insensitive completion for git in bash?

I use Ubuntu 16.04 for web development. Its default shell is bash. I use git for source versioning. I would like to have git branch names with case insensitive completion. At the moment, completion ...
0
votes
1answer
479 views

Tab completion doesn't work for file arguments to certain commands

I have a directory containing a disk image, let's call it "image.dd". In reality it is a much longer name, thus the desire to table complete the name by typing the first character and hitting tab to ...
3
votes
3answers
3k views

sudo command doesn't autocomplete anymore on files

Ubuntu 16.04.1 LTS I don't know what I did, everything was working fine, but since today my bash doesn't autocomplete anymore when I use sudo. I can use the autocompletion as normal user, I can use ...
1
vote
1answer
337 views

Tab autocompletion for a command's options

Tab auto-completion does not work "inside" commands, this is, for options. For example, consider the help file of the command mousepad: lucho@lucho-XPS15:~$ mousepad --help Usage: mousepad [...
0
votes
1answer
207 views

Automatic completion for the argument of a bash script

I wrote a bash script having one argument, the name of one of the computers connected on my local network. I would like to enable the automatic completion, like I can with ssh. How can I do that ? ...
2
votes
1answer
867 views

zsh/fish filename autocompletion in bash

Actually, I'm running Bash, and I'll like to make a settle modification at the configuration. With zsh and fish, we have the opportunity to display files and directories when we press Tab. Is there a ...
5
votes
2answers
73 views

Tab-completion of shell patterns

On my Debian servers I'm used to hitting Tab to "preview" the expansion of shell patterns: $ cp *some*<Tab> something somewhat have-some-cake $ cp *some*_ When the pattern expands to one ...
1
vote
2answers
116 views

Why there is && after some function definitions in bash completion file?

If you look at files /usr/share/bash-completion/completions/* many have function definition followed by && complete -F (at least in Xenial). Why is this? Does the notation have some special ...
1
vote
2answers
859 views

Ubuntu 16.04 and apt-fast

I have installed apt-fast in three sites, my own laptop, inside a virtual machine (Ubuntu Server 14.04) and in a remote public server (Ubuntu Server 14.04 too). Autocompletion of apt-fast works well ...
2
votes
0answers
205 views

vi tab completion works only in some directories

I have moved from Ubuntu 14.04 to 16.04 (new installation). On 14.04 I had no problems with tab completion. However on 16.04 I have problems especially with vi: In some directories (e.g. ~/ , /etc, /...
1
vote
0answers
139 views

zsh auto completes non-executable files in $PATH when press TAB

I'm using oh-my-zsh, along with some custom scripts that automatically add sub-directories under specific folder to PATH. Taking android studio for example, assume ~/android-studio/bin is included in ...
1
vote
0answers
122 views

bash command prompt autocomplete by folder/filename initial?

In brief Bash prompt has the autocomplete feature when we hitting tab. When there are multiple outcomes, hitting tab will display the candidate list. I want to enter the initials of folder/filename ...
0
votes
1answer
62 views

completion for alias gone?

The good method for completion for alias in this web https://ubuntuforums.org/showthread.php?t=733397. Now in 16.04, seems rules changed. I can not find apt(_apt) completion command. but ls is(...
0
votes
0answers
46 views

How can I get the autocomplete feature of the command “sudo service squid…”?

I can't type in my console: $sudo service squi and press TAB and get the remain part of the command completed (squid3), neither the start, stop and restart parameters as I'm used to do with others ...
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
183 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 ...