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

Filter by
Sorted by
Tagged with
0
votes
1answer
28 views

How can I use the output suggestion by apt and other terminals use?

Have you ever had to run a command which is not found on your system, but apt suggests you to install it running command? Do you know if it would be possible to autocomplete the terminal prompt with ...
2
votes
1answer
41 views

How to create Bash script to complete my email address?

I am trying to write a bash script to auto-complete my email address. So my goal is whenever I type foo in terminal and hit tab it completes it with foo.bar@gmail.com. So far I read these links: ...
1
vote
2answers
55 views

How do I enable zsh package suggestions as in Ubuntu bash?

I'm slowly transitioning to zsh from bash and am loving almost every part of it, but there are two things I'm really missing. One of them is snap completions, see here: Enable snap TAB-completion for ...
2
votes
1answer
46 views

bash-completion: how to select among different alternatives

In bash, how can I select an option from a list displayed by TAB? Ex. Suppose vim <TAB> shows different possibilities txt1 txt2 txt3. How can I select the first one (txt1)? EDIT: let me be ...
0
votes
2answers
110 views

No history and path/bash completion on some systems

For some reason, I don't have a history of commands in the terminal and neither can I complete paths or commands. Pressing arrows also show symbols like ^[[D and ^[[C. The shell is bash and .bashrc ...
0
votes
0answers
79 views

Update ZFS Auto-complete

I used this guide to migrate from Windows 10 to a Linux environment. Now I'm having a little problem with autocompletion on zfs commands, autocomplete is not up to date and completes using old ...
1
vote
0answers
182 views

Terminal Autocomplete and History does not work

I am a Mac user who has recently switched to Lubuntu on my personal laptop. The issue I'm facing is that my terminal does not do any sort of autocomplete or show history. Pressing Tab just adds a tab ...
5
votes
1answer
754 views

Why doesn't auto complete work in my shell?

I am not so into Linux and I have the following doubts: a client provided me an Ubuntu 18.04.3 LTS virtual machine which I access via SSH. (I am using MobaxTerm as SSH client but it should not be the ...
0
votes
2answers
113 views

How should I install my own bash completion script?

I've written some software that includes it's own Bash completion script. This script works fine when I source it manually, but I'm trying to figure out how best to install on Ubuntu 18.04. There ...
0
votes
0answers
39 views

How to add a auto-complete util to Bash CLI that uses a script?

I want to be able to git checkout a branch that I don't remember its full name. I want to be able to start typing git checkout 12345 and then, a script will run, taking the 3rd arg ("12345") and ...
2
votes
1answer
94 views

Ubuntu 19.04 word prediction / suggestion / autocomplete

I have moved to Ubuntu 19.04 from Windows 10 and I noticed that Ubuntu predicts the words I am about to type, based on my previously typed words. I liked it at first, but now, a few months later, I ...
0
votes
0answers
14 views

TextSuggest run command in background on startup [duplicate]

I found this tool TextSuggest and to set it up you need to: Run the command textsuggest-server in the background, and set it to run on startup. How to set the command to run in the background? I'...
2
votes
1answer
463 views

How do I apply tab completion on a script from any directory?

I have a bash autocompletion function _customcomplete that I want to apply on a script called run.sh. If I call complete -F _customcomplete ./run.sh, then the autocompletion script works fine as long ...
2
votes
0answers
33 views

How can I get usernames to tab complete again in 19.04 server when using su?

One of my servers was originally running Ubuntu Server 18.04 (Bionic) and a very common task would be to substitute user, eg. su like this: su someusername Usually I would use tab completion to ...
1
vote
0answers
49 views

Bash Autocomplete for Non-Neighboring Directories

I recently wrote a program that can instantly switch to a directory if it has a unique name with respect to some given baseline. For example, if I have a directory: ~/Documents/foo and foo is a ...
1
vote
0answers
337 views

Enable snap TAB-completion for zsh

Does anybody have an idea how to get the TAB-completion for zsh working for the snap command? According to the answer in How can I enable auto-completion for the snap command? it should be working ...
0
votes
0answers
66 views

ubuntu bash-completion does not work properly with command substitution

To reproduce this problem in Ubuntu or other Linux distros derived from Debian, just download bash-completion via: $ sudo apt-get install -y bash-completion and type afterwards a bit long bash ...
1
vote
0answers
180 views

bash filename autocomplete - does it have to use so much screen space?

I have a vague memory of this working in the past, but can't find any info now. Using TAB in bash to show available filename completions lists them on the line(s) below the command and then reprints ...
0
votes
1answer
79 views

How does ubuntu terminals autocomplete work?

How does it know what arguments a command expects and whether it is expecting file as input? How does it know what commands are available?
0
votes
0answers
324 views

apt install - can't autocomplete package names (Docker)

It's the same error as in several other posts, but none of the solutions work for me. I'm typing apt-get install ar<TAB><TAB> and there's not auto-completion. I'm using an Ubuntu-...
1
vote
1answer
184 views

Autocomplete dotfiles without typing the leading dot

I've been getting close to bash on finding the really nice features of Bash-it. I want to be able (or so I think) to key ls file, and on pressing Tab ↹, i get a list of dotfiles, or the single one ...
0
votes
1answer
138 views

Is it possible to achieve autocomplete to predifined text in gnome-terminal?

I have started learning Ubuntu since 1 year.. During this 1 year period I typed a lot of these below texts in gnome-terminal sudo -H nautilus /foo1/foo2/foo3/foo4/ sudo -H gedit /foo1/foo2/foo3/foo4/ ...
2
votes
2answers
587 views

Word Prediction like Android “keyboard”

Is there a way to get word prediction like on android? Like on this screenshot: This would improve the speed of typing on Ubuntu a lot. I need it here: thunderbird Browser textarea gedit Required ...
1
vote
0answers
70 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
77 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 ...
2
votes
1answer
68 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
328 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
515 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
430 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
127 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, I tried the example ...
1
vote
0answers
476 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
911 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
106 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 ...
3
votes
1answer
286 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
168 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. ...
2
votes
2answers
784 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
33 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
348 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
1k 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 ...
1
vote
0answers
396 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
133 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 ...
8
votes
2answers
2k 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
27 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 ...
2
votes
1answer
250 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
905 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
163 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
121 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
2k 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
1k 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
1k 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 ...