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

learn more… | top users | synonyms

59
votes
3answers
27k views

Can I make Tab auto-completion case-insensitive in the terminal?

Ubuntu's Terminal uses case-sensitive auto-completion, as I suppose would be expected for Linux. But I think it would often be more convenient to use a case-insensitive one instead, to save you ...
44
votes
3answers
52k views

apt-get autocomplete package name is broken

At some moment apt-get install autocomplete was broken It was very useful to me to see packages name with Tab press How to repair this autocomplete?
27
votes
7answers
22k views

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 <type first letters of package> <TAB> That it auto-completes the name of the package. Just for an example... ...
25
votes
5answers
33k views

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 ...
17
votes
2answers
7k 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 ...
16
votes
5answers
5k 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 ...
12
votes
6answers
4k views

How to alias 'git' to 'g' so that bash-completion rules are preserved?

If I do this: alias g='git' I loose all completion rules (i.e. branches and remotes are no longer being automatically completed when I hit TAB after typing, for example g push o).
11
votes
4answers
10k views

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 ...
11
votes
1answer
296 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 ...
10
votes
4answers
7k views

Is it possible to get tab completion with sftp?

Sometimes I need to quickly copy a file from my remote server to my local machine. Here's my current workflow: I SSH into my remote server, find the file and copy its full path. I open new terminal ...
9
votes
2answers
41k views

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 ...
9
votes
1answer
10k views

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 ...
7
votes
4answers
11k views

Terminal command autocomplete

I'm currently trying to switch from OpenSUSE to Ubuntu as my main OS. While most of opensuse features is there in ubuntu, there is one feature that doesn't. In Opensuse, I can always use Ctrl+Up to ...
7
votes
1answer
2k views

How to make bash stop tab autocompleting hidden directories

Most of the time, I don't need autocompletes for my hidden directories. In fact, that's the point of them being hidden! However, annoyingly, bash takes these directories into account when ...
6
votes
5answers
2k views

Shell tab-completion for service command broken as root

On most of our servers, tab completion of service names after typing in the service command no longer works, as root. It works just fine as non-root. This is on Ubuntu 12.04. I'm not sure how to ...
5
votes
2answers
8k views

Bash Completion Doesn't Work In Root User

I'm on 12.04 and I'm trying to find a way to enable Bash completion in root user. Any ideas on how to do that?
5
votes
3answers
11k views

Bash Tab Auto-complete not working for apt

apt-get install and apt-cache policy do not complete package names. I have double checked /etc/bash.bashrc, no irregularities. Googled for answers but none suffice. Any help/advice?
5
votes
1answer
9k views

terminal autocomplete doesn't work properly

if I start typing a command like apt-g after hitting tab, terminal completes the command to apt-get, but for the second part of command like install if I insert some other char like insta hitting tab ...
5
votes
1answer
4k views

How to make my ubuntu auto-shutdown after successful update?

Using a EDGE for update is really not cool but i have to. So my update always runs in night when i go to sleep. Is there any way to set ubuntu to auto-shutdown after completion of update. Note: I ...
5
votes
3answers
440 views

Bash cannot expand backticks interactively

On RHEL5.2 (bash 2.3.25) I can cd `pwd`/[TAB] and pwd is substituted into my current working directory, using the output of pwd(1). How can I achieve the same functionality in Ubuntu 9.10 (bash ...
5
votes
2answers
620 views

Any way to list similar commands?

When you write the command name wrong, bash often does this: septi@norbert:~$ good No command 'good' found, did you mean: Command 'gold' from package 'binutils' (main) Command 'gmod' from package ...
5
votes
1answer
1k views

Autocomplete on .bash_aliases commands?

I have a whole bunch of aliased commands in .bash_aliases The most generic examples are alias apt-update="sudo apt-get update" alias apt-upgrade="sudo apt-get dist-upgrade" but then I also have ...
5
votes
1answer
947 views

How do I get tab completion to work with 'rake'?

When I try to use tab completion with rake, only files are suggested: $ rails test-app | grep -v create; cd test-app $ rake <TAB><TAB> app/ db/ lib/ public/ README ...
5
votes
1answer
88 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 ...
5
votes
1answer
543 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 ...
4
votes
2answers
435 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 ...
4
votes
3answers
447 views

Getting completion feature with Alt+F2 in Unity?

I know there is an application that does what I want. It's called gmrun But I was wondering if I could get something like bash completion with unity's run interface .i.e. with tab command ?
4
votes
1answer
1k views

Command tab completion of arguments from folder

Is it possible to create a list of completions for a command based on some folder's files? Say I want to run Sublime Text 2 on one of my projects, which are saved as ...
4
votes
1answer
822 views

changes to /etc/bash.bashrc not permanent

After a recent upgrade to 12.04, auto tab completion was disable in /etc/bash.bashrc. I uncommented the following lines: if [ -f /etc/bash_completion ] && ! shopt -oq posix; then . ...
4
votes
1answer
636 views

bash autocomplete feature doesn't work when I create function for emacs

Details about my system: I am running Ubuntu 12.04.4 LTS on Oracle Virtual Box 4.3.6, from Windows 8.1 installed on an Asus Laptop. I'm using bash_completion version 1.3 release (I got this from the ...
4
votes
0answers
540 views

How enable tab-completion in Dash to run commands? [duplicate]

Possible Duplicate: Getting completion feature with Alt+F2 in Unity? In stardard gnome when I do Alt+F2 I can complete paths and commands with Tab but now in Unity the focus moves down to ...
3
votes
1answer
3k views

How do I disable pathname expansion in bash?

Suppose I'm a lazy bum and want to avoid putting every string in quotes when passing arguments to a function, how do I avoid the characters * and ? being used by bash for patname expansion? ...
3
votes
2answers
8k views

Tab autocomplete in terminal is not behaving properly

There's something odd about my autocomplete in the gnome terminal. I used to be able to type cp Downtab to get cp Downloads/, and then type Jettab to end up with cp Downloads/Jet\ Pack\ ...
3
votes
2answers
316 views

alt-tab completion while using SSH

I just recently discovered that pressing alt-tab on a console window allows me to autocomplete from the last commands and parameters I used. Very useful! But when using SSH from Windows this feature ...
3
votes
2answers
182 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?
3
votes
2answers
787 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 ...
3
votes
1answer
117 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 ...
3
votes
1answer
2k views

How to autocomplete formulas in LibreOffice Calc

I recently moved from MS Excel 2007 to LibreOffice Calc (now using Ubuntu 11.10) and there are some things that I still cannot do in LibreOffice Calc. One of these things is formula autocompletion. ...
3
votes
1answer
256 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 ...
3
votes
2answers
498 views

Why doesn't Bash completion for 'cc' and 'c++' work?

While trying to compile using a C/C++ file using cc/c++ commands, I find that it is no longer possible for me to use Tab key for bash-completion. I could do the same before 12.10. Also, when ...
3
votes
2answers
1k views

enable auto-completion of apt-get for non-privileged user?

I've enabled apt-get in SUDO without password , and bash autocompletion for it need to be enabled as well , but how ? If i try to source that file: %> . /etc/bash_completion.d/apt No command ...
3
votes
1answer
90 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?
3
votes
1answer
1k views

Can I implement tab autocomplete in a bash script?

I have a script that, when a user enters a file name in a directory, performs automatic tagging operations on that file (mp3 tagging). My problem: It gets really tedious typing in the exact file ...
3
votes
0answers
77 views

Redirect 'complete' in bash functions and alias

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

Any editor that does autocompletion in Ubuntu?

Is there any editor/IDE(or a plugin for an existing editor like Vim or GEdit) that does auto-completion of many languages (not just C++)? Aptana does only HTML/CSS/JS and Code::Blocks does only C++ (I ...
2
votes
3answers
107 views

How to see available commands that end with a certain string?

If you start typing and pressing tab the console tries to expand and show all commands, functions and executable scripts that begin with what you have started to write. Is there a way to see which ...
2
votes
1answer
4k views

Is plugin needed for php code completion in Geany?

I'm new to Geany IDE. I have installed basic Geany without any plugins from ubuntu software center. I couldn't find code completion for php when I press Ctrl space. Is plugin needed for this ...
2
votes
2answers
688 views

How to Tab-complete directories when in symlinked directory?

I have a symlink: /path/to/foo -> /path/to/bar/foo When in /path/to/foo I might want to cd to /path/to/bar/foo: $ cd ../ Tab Then nothing autocompletes. I can still cd just fine by typing in ...
2
votes
1answer
23 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] # ...
2
votes
1answer
259 views

Autocomplete while compiling a file with c++ is gone

I am using Ubuntu 13.04 and have been programming mostly in C++. I use vim editor and c++ command to compile my .cpp file. What I have noticed is after typing c++ and pressing the Tab key, an ...