1
vote
0answers
19 views

Reusing _kill completion in .bashrc fails

I'm trying to extend bash completion alias perf-connect-process="perf record -p"; alias pperf=perf-connect-process; complete -F _kill perf-connect-process; complete -F _kill pperf; by reusing the ...
0
votes
0answers
21 views

How can I get bash to perform case insensitive tab-completion for my aliases and functions?

I have a alias like this: alias sshUntrusted='ssh -X -C -c blowfish-cbc,arcfour' when I type: $ sshun bash does not complete this alias I have put set completion-ignore-case on #ignore case ...
1
vote
0answers
24 views

Tab completion that honors $CDPATH

I've installed bash_completion and set my $CDPATH. I can successfully cd to subdirectories of those in my $CDPATH. What I'd like to do from here is for tab completion to bring up files in those ...
0
votes
0answers
127 views

BASH 4.2.45(1) - shopt direxpand breaks tab completion for ~

I have a machine with Mac OS X installed, running Bash 4.2.45(1). When I enable shopt direxpand, it works as expected, however when I try to do the following tab complete, the tab completion process ...
1
vote
0answers
29 views

How to make tab completion work within parentheses

On my Ubuntu machine, I can do this emacs $(which first-part-of-executable<tab> and bash will tab-complete the full executable name. I enabled this myself by adding complete -c which to ...
0
votes
2answers
304 views

bash tab completion doesn't work on shell scripts

On my Fedora 19 system tab completion doesn't work for bash scripts when I have a sh at the beginning of the command line unless the script filename ends with a .sh. That is, if I type: $ sh ...
0
votes
1answer
119 views

bash tab-completion list below prompt

Whenever I use tab-completion, the list of possibilities is displayed and the prompt is duplicated below (| indicates the final cursor position): $ vim ~/.<TAB> ./ ../ .bashrc .vimrc $ ...
7
votes
1answer
920 views

bash completion for filename patterns or directories

I'm trying to get a bash completion script set up and having some trouble. I would like to set it up so the completions listed are either files matching a particular extension, or directories (which ...
6
votes
3answers
656 views

Is there a shell which supports fuzzy completion as in Sublime Text?

I'm using bash and I was wondering if there is any plugin in bash or other shell which allows me to do this cat tfnislong.txt + [tab] completes to cat ThisFileNameIsSoLong.txt just like tab completion ...
1
vote
1answer
127 views

Make emacs autocomplete cpp files over binary files

My question is similar to this one, except for emacs instead of vim. The issue is that I have a cpp file that I want to open and when I type f[TAB] it autocompletes to foo the binary file foo instead ...
1
vote
1answer
755 views

How do I restore tab-completion on shell variables on the bash command-line?

I've long set my most-recently visited directories to shell variables d1, d2, etc. On an ancient Fedora machine I could type a command like $ cp $d1/ and the shell would replace $d1 with text like ...
2
votes
1answer
398 views

Bash filename tab completion

I have noticed sometimes that tab completion is helpfully filtered in bash. I am a java programmer and often use the java and javac commands in the terminal for quick or remote tasks. Say I have the ...
4
votes
2answers
1k views

Can bash (or a terminal) auto-complete (tab-complete) from terminal buffer contents?

Imagine I have a bash session in a terminal, just after some output: $ grep foo *.txt this.txt: something123 foo $ After this grep, let's say that my next command will take something123 as an ...
0
votes
5answers
145 views

Tab-completion friendly names for start / stop

I have many scripts that are used to start and stop services. It is frustrating when using tab completion that you need to type: ./serviceScript.sh [sta|sto] before there is enough information ...
1
vote
1answer
89 views

left tab completion in bash or zsh

When I use standard tab completion in bash or zsh, I type the first part of a filename or path, then hit to complete the word. This works well unless I'm in a directory full of files where all of the ...
5
votes
3answers
478 views

Why does bash tab-expand a tilde when I am completing a vim file name?

If I type cat ~/.bashr<TAB> then it completes to cat ~/.bashrc. If I type vim ~/.bashr<TAB> then it completes to vim /home/neil/.bashrc... (It does the same with vi, which is aliased to ...
1
vote
1answer
274 views

sudo bash completion for locations user has no permissions for - how to handle?

Example: drwx------ 2 root root 16384 26. juuli 2009 lost+found How do I get this to show me completions: sudo ls -l /lost+found/<TAB> I'm looking for a solution that works across all ...
2
votes
1answer
265 views

Bash Shell Hangs on ?+Tab-complete

I often use tab completion in Bash when completing directories, but I find that it hangs for an unacceptable amount of time if I accidentally include a question mark in the directory. I'd like to know ...
14
votes
1answer
3k views

How can I get bash to perform tab-completion for my aliases?

I have a bunch of bash completion scripts set up (mostly using bash-it and some manually setup). I also have a bunch of aliases setup for common tasks like gco for git checkout. Right now I can ...
0
votes
2answers
225 views

urxvt - tab expand environment variables

I am new to urxvt (moved from gnome-terminal -> Ubuntu 12.04 refugee). I am used to having environment variables expand in gnome-terminal by default Suppose that I have an environment variable ...
0
votes
1answer
103 views

COMP_LINE not set despite bash completion being installed

I'm using homebrew's bash completion package on OSX, which is installed in /usr/local/etc/bash_completion. It's working fine, but there are many extensions for it which rely on various environment ...
4
votes
1answer
477 views

Is it possible to force bash tab completion suggestions to list in a single column?

When I'm typing a filename and double-press Tab, a directory listing occurs to suggest all options for the tab completion. By default it lists in the same format as ls however I would prefer it to ...
4
votes
1answer
680 views

Bash: always display file possibilities on tab-complete

When I use tab for filename completion and there are more than ~100 matches, it displays something like "Display all 403 possibilities? (y or n)". This gets annoying when I do it many times a day. Is ...
6
votes
2answers
193 views

How do you set a minimum number of characters for Bash tab completion?

Is there a way to set a minimum number of characters to Bash's tab completion? My reason is that I often accidentally press the tab key on an empty command line and it takes forever to load the ...
5
votes
2answers
606 views

Access Finder's “Open With” menu from the commandline (for tab completion)

On Mac OS X, I know one can open a file from the commandline with its default application with open, and with other applications with open -a <application name>. Thus, open movie.avi open -a ...
3
votes
1answer
162 views

Why does ~username/ change to /home/username if tab-completing a path with a space in it?

In ~jacksonc/temp/ there are two files, test.txt and space test.txt, both placed there through Windows (using Samba). Using bash, if I type cat ~jacksonc/temp/t[tab] , it autocompletes to cat ...
2
votes
1answer
200 views

filetype-aware tab-completion in bash?

Is it possible to have filetype-aware tab-completion in bash? I.e. let's say there are two files in a directory, "foobar.txt" and "foobar.html", when I type "firefox foo" and then hit tab, bash would ...
4
votes
2answers
959 views

Setting up tab-completion of paths in bash or zsh to resemble tcsh

I’m a long time tcsh user, but all the cool kids seem to be using either bash or zsh nowadays (that is, completion patterns for git or stuff are available for bash and zsh, rarely for tcsh). My ...
9
votes
1answer
2k views

Make bash's tab-completion case-insensitive [duplicate]

Possible Duplicate: Case insensitive tab completion in Bash Is there any way to make the tab-completion in bash case-insensitive? For instance, if I have a file called Hello.txt and try to ...
1
vote
1answer
594 views

bash-completion only after sourcing .bash_profile

I have bash-completion installed using macports and following lines in my .bash_profile if [ -f /opt/local/etc/bash_completion ]; then . /opt/local/etc/bash_completion fi but the completion ...
5
votes
2answers
257 views

How do I abort building the list for tab completion without losing the command?

some_very_long_command_line --arg1 --arg2=555 --arg4 ... ... ... && <now Tab pressed> (Now it works. I want to cancel before the following message) Display all 6936 possibilities? (y or ...
4
votes
1answer
1k views

How do I make bash do vim-like tab completion for file names?

I'd like for bash to rotate through the matching file names instead of listing them, like the default tab completion behavior in vim. Is there an easy command to do this? This is essentially the ...
2
votes
0answers
203 views

Branch names not showing in Mercurial's tab completion

I have a development machine running mercurial 1.6.3. Tab completion in bash works great for completing commands, tags and branch names. I've set up a new machine with the same mercurial version (both ...
2
votes
1answer
339 views

Filename tab completion within bash backtick environment

I'm on Ubuntu 10.04 and I've ran into a little bit of a snag with bash completions within backticks. Here's an example to illustrate: I save streaming URL:s to my radio-stations in text files, and I ...
6
votes
2answers
2k views

Smart tab completion (for directories)?

Are there shell versions that have a more intelligent tab completion? I'd like to be able to type cd foo-<TAB> Then it would show me the possible completions along with numbers that I can ...