Tagged Questions

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

2
votes
1answer
152 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 ...
0
votes
0answers
47 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]} ...
0
votes
0answers
12 views

Pre-populate Username and Domain fields

I click one of the bookmarks to connect remotely to my home folder - initially the folder was arrived at using "File -> Connect to server", then the bookmark created. However, on clicking the ...
0
votes
1answer
26 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
150 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 ...
0
votes
1answer
74 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
0answers
78 views

sqlite3 command line tool tab completion

Does sqlite3 command line tool have "tab" autocompletion, and, if it does, how can I enable it? For example, if I have a sqlite3 database file.db with table "verylongtablename", I want to execute ...
0
votes
1answer
78 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
0answers
65 views

cvs autocomplete not working

'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
4answers
2k 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
60 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
36 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?
4
votes
1answer
202 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 ...
3
votes
1answer
533 views

Bash completion for the new apt command [duplicate]

I like the new apt command (which will be included in the upcoming trusty release) so much that I installed it on my precise system by compiling the 14.04 package from source. Unfortunately, bash ...
13
votes
2answers
2k views

Can I enable bash-completion for the new apt command?

The new apt command in 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 ...
0
votes
2answers
92 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
97 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: ...
0
votes
1answer
43 views

config file of shell complete

I want add autocompletion to my script. I wrote bash code for autocomplete (using this tutor http://tldp.org/LDP/abs/html/tabexpansion.html) and put it to /etc/bash_completion.d/ then i execute in ...
4
votes
1answer
256 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 ...
0
votes
1answer
181 views

How to remove a record from bash tab completion options

Every time I type "ssh use" in my bash terminal and press tab the command gets completed to "ssh username.dreamhosters.com" but that was not what I was looking for. How can I remove that entry from ...
0
votes
1answer
2k views

Terminal autocompletion 'tab' not working as intended?

I know this has been discussed on other posts but my problem does not seem to be fully resolved and I do not have permission to add a comment to those posts yet :( listed on help.ubuntu.com > ...
1
vote
1answer
438 views

Bash completion doesn't work, or is ignoring what I've typed; but works for commands

Bash completion seems to be ignoring what I've typed (it tries to complete, but acts as if there's nothing under the cursor). I know I saw it work on this machine earlier today, but I'm not sure what ...
3
votes
1answer
700 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
1answer
3k 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 ...
0
votes
1answer
330 views

any way for auto-tab in mysql?

Using MySQL version 5.5 in Ubuntu 13.04.is there any way for enabling auto-completion with TAB in mysql ? I'd like to auto-tab for table names,database names,commands etc ,.
3
votes
2answers
223 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
1answer
687 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 ...
1
vote
1answer
131 views

Force terminal text editors to open specific file types first, if there are multiple with the same name

If I have multiple files all with the same name (except, of course, the extension), is there a way of making bash auto-complete to a specific extension when I open them from the terminal with a text ...
3
votes
1answer
2k 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 ...
2
votes
1answer
209 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 ...
2
votes
1answer
190 views

Auto-completion does not work with sudo mount

I'm using 12.04.2 and auto-completion for mount does not work with sudo. If I don't use sudo auto-completion works as expected: $ mount --bind -t devpts /dev/<press tab> block/ char/ ...
0
votes
1answer
242 views

Are there different options for terminal autocomplete (tab) behaviour?

I don't like my terminal's autocomplete behaviour, to be honest I like windows' cmd behaviour better. Does bash (default shell in ubuntu) come with several options of the autocomplete behaviours? How ...
0
votes
1answer
435 views

Eclipse 4.2 (Juno) crashes on Ubuntu 12.04 (Precise)

I installed eclipse 4.2 java on Ubuntu 12.04 x86_64 and it just crashes everytime it opens the auto completion context menu. It crashes without any error message and just closes the eclipse window. ...
3
votes
1answer
10k 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 ...
2
votes
3answers
89 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 ...
5
votes
5answers
860 views

Service tab-completion broken as root, not even sure where to start looking

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 even sure where ...
1
vote
1answer
2k 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 ...
14
votes
5answers
8k 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... ...
0
votes
1answer
886 views

Problem bash completion apt-get 12.10

I've got an annoying problem with completion and sudo apt-get. To give an example: $ sudo apt-get in[Tab][Tab] in intel_bios_reader includeres ...
1
vote
1answer
205 views

Wrong autocompletion with sudo apt-get

Does anybody know why if I type: apt-get upg<TAB> I get: apt-get upgrade but if I type: sudo apt-get upg<TAB> I get: sudo apt-get upgrade-from-grub-legacy
3
votes
2answers
341 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 ...
4
votes
1answer
609 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
801 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 ...
3
votes
1answer
656 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 ...
0
votes
0answers
21 views

Suggestions for IDE with code auto-completion for web development (LAMP) [duplicate]

Possible Duplicate: What IDEs are available for Ubuntu? I am looking for an editor (IDE) for developing PHP web applications. I would need it to handle HTML, CSS, JavaScript and PHP at the ...
1
vote
1answer
77 views

CLI looking/acting strange on a BeagleBone

I'm having an issue with the Command Line Interface. I'm running Precise 12.04 armhf on a BeagleBone and all the functionality works fine that I need. I have a 'cosmetic problem' when logged in as the ...
0
votes
0answers
99 views

Why doesn't autocomplete work after typing the “su” command? [duplicate]

Possible Duplicate: Autocompletion doesn't work while logged as root I have had a few times when autocomplete doesn't seem to be there when pressing the tab button. I can recreate this ...
1
vote
2answers
416 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 ...
5
votes
4answers
6k 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 ...
3
votes
2answers
6k 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?