The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
9 views

Completion of arguments for Cygwin commands not working due to `.exe` extension

When using tab completion in Bash on a Cygwin system to complete the name of a command, the .exe extension is appended to the command name, e.g, typing opens and pressing Tab completes the command to ...
1
vote
1answer
12 views

zsh autocomplete results from function

I've been searching and searching and unable to find a clear way to do this: Slightly contrived example to hide details: Say I want to autocomplete tmux session names with a command that will open ...
0
votes
0answers
52 views

Is it possible to use ZSH-style completion in IPython?

In IPython, if I trigger a completion in an ambiguous context, for example var = [press TAB] then I got a whole screen of completion candidates. I have to scroll up to find out what I did before. ...
0
votes
1answer
39 views

How to bash complete an alias as the command [duplicate]

I have an alias alias gi=git Unlike git, gi cannot complete on subcommands, paths, branches. How can I tell bash to "complete X as if it were Y"?
0
votes
1answer
37 views

Trouble creating Custom Completions for Sublime Text 3

UPDATED I'm working on Salesforce development using the MavensMate plugin for Sublime Text 3. I'm wanting to create a custom completions file that will contain some common HTML tag class names that I ...
1
vote
1answer
31 views

bash/readline doesn't autocomplete directory name

I have an executable in a subdirectory of the current directory: ~ $ ls -l src/users -rwxr-xr-x 1 me users 1001K Nov 17 18:52 src/users* I try to execute it by typing sr and then clicking tab. ...
0
votes
1answer
33 views

How can I regenerate the “bash_completions” file from “bash-completion/completions” directory?

Somehow my /usr/share/bash-completion/bash_completion file (which is sourced by /etc/bash_completion) has been deleted. However, the rest of the bash-completion directory appears intact: there is ...
0
votes
0answers
11 views

Reloading tab completion in postinst script

I'm distributing a .deb that (among other things) installs a file to /etc/bash_completion.d/example for tab completion. The file gets installed correctly, but the tab completion is not immediately ...
0
votes
1answer
89 views

How do I view the tab completion function for a command in bash?

I ultimately want to alias screen -r. I mostly want to do this because that command has an awesome tab completion feature that shows me the current GNU screen sessions. I want that power with the ...
1
vote
1answer
63 views

history-search-backward ignores search text after first space character?

I use a lot of git commands and since they are mostly 2-word command names, matching doesn't find the closest match. For example: # type in some commands git checkout - git status mvn test # try to ...
0
votes
0answers
25 views

Bash filename tab completion when an environment variable is present

When I use tab completion on a normal path like this: vim /home/tester001/di<tab> it correctly expands to: vim /home/tester001/directory_1/ and I can continue like this: vim ...
2
votes
2answers
56 views

Completion when pasting Bash command beginning with tabs

I'm writing a Dockerfile which I'm formatting using tabs (which I usually use everywhere). But I've copied a multi-line command where the second line begins with two tab characters, i.e.: apt-get -y ...
1
vote
1answer
211 views

SublimeText XML completions file

I apparently can't get autocompletion to work in my XML files. Here is my xml.sublime-completions file, which I added to the User folder: { "scope": "text.xml", "completions": [ { ...
0
votes
1answer
13 views

tsch: tab-complete filename after --flag=

One the small annoyances I have in my daily use of tcsh is when I start writing a command like this: # do_stuff --input=/path/to/some I wish to use tab-completion to finish writing ...
0
votes
1answer
338 views

zsh completion for all executables in path

I have written a script which itself takes as an argument any arbitrary executable in my $PATH. Is there a way to create a zsh (or bash) completion function such that I would be able to type myFunc ...
1
vote
2answers
60 views

bash complete: list directory names from a defined directory?

I need the directory names in /mailman/lists to tab-complete as an argument (without any slashes) to the 'list_members' command regardless of where I am in the filesystem. In tcsh (on our old ...
1
vote
0answers
40 views

Bash partial glob expansion

I have a question similar to this one, but different: I want bash to use a glob expansion in auto-completion, if possible. For example, I would like $ ls *2.<TAB> To give me: $ ls mydoc2. ...
0
votes
1answer
15 views

Bash expansion to list from a directory

I tend to work on multiple projects, all stored inside my home (~) directory inside a directory called web. At one point all my projects were inside a single directory inside this; so to move from ...
1
vote
0answers
155 views

Can't tab complete in psql

For some reason, tab-completion isn't working in psql on my Mac. I can tab complete table and field names just fine in Ubuntu, but pressing TAB fails to work in Mac OS X. I can successfully use my ...
0
votes
1answer
138 views

Is it possible to have tab completion of drop-down lists in web pages in Firefox?

Does anyone know of a Firefox plugin that would enable tab-completion (or some other key sequence like Alt-L) of items in drop-down lists in web forms? e.g. ou<TAB>in<TAB>s<TAB> ...
3
votes
3answers
193 views

Do not expand wildcard on tab completion

I'm wondering how I can configure zsh to not expand the wildcard in a filename. For example I have a directory of a couple hundred files named as following: a.foo-bar a.foo b.foo-bar b.foo c.foo-bar ...
1
vote
0answers
25 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 ...
2
votes
1answer
141 views

How to hide a program from Linux's tab-completion

I have an account on a shared machine, and cannot access /usr/bin, where there are many programs which I never use. I'd like tabbing to ignore many of these programs. For example, I'd like ...
2
votes
0answers
95 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 ...
2
votes
1answer
131 views

zsh tab completion to run scripts in current folder (.<TAB>scr<TAB>)->./script.sh

I have an issue with zsh (or oh-my-zsh): When I want to run a script in current directory, I do ./script.sh. In bash I could do .<TAB> and it would give me ./ where I could continue typing the ...
1
vote
0answers
41 views

tmux completion (not shell completion)

Is there any way to do completion of arbitrary text from your tmux session (e.g. output from previous commands)? Something similar to hippie-expand in emacs or Any word completion in vim? Note that ...
0
votes
2answers
139 views

A tab in Tmux results in an indent and tabcompletion

I ruined my tabcompletion in Tmux. When I use tabcompletion and I've multiple options which fit the prefix Tmux is acting weird. Assume I've a folder with subfolders downloads and documents. When I ...
1
vote
0answers
42 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 ...
1
vote
1answer
133 views

How does tab-completion “know” what files there are in sub/super folder?

I wonder how tab-completion knows that certain file exists in a directory above the current directory or in the working directory? If I have a file named foobar in a subdirectory and I type in foo ...
1
vote
0answers
53 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
756 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 ...
3
votes
2answers
1k views

How can I prevent Supertab to try completion even if I just want to enter a tab?

Even when I have an empty buffer in vim, supertab tries to do a completion at the begining. How can I configure supertab to only try tab-completion if there's a character?
0
votes
0answers
166 views

Use zsh completion in vim instead of vim one

I like zsh completion where for example I can write f/o/fTab and get folder/other_folder/file.txt (I'm not sure, it's possible feature of oh-my-zsh, not zsh, but it seems that it doesn't matter) Also ...
0
votes
1answer
260 views

How to adjust tab completion in Sublime Text 2

Is there a way to "complete completion within completion"? Example: Completions: 'fra' => '\frac{$1}{$0}' 'bf' => '\mathbf{$0}' I do fra<tab>bf<tab> and want to have ...
1
vote
1answer
193 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 $ ...
0
votes
0answers
46 views

Use two different completions in tcsh

I want to make a tcsh completion that completes with both a relative directory (ie p/*/d/), or the output of a command (ie p/*/'completionterms'/). Is this possible? Looking at the tcsh man page it's ...
8
votes
2answers
3k 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 ...
10
votes
3answers
2k 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
2answers
482 views

zsh completion doesn't work under Cygwin for other drives

I'm on Win7 x64, Cygwin 1.7 and zsh (and using oh-my-zsh). Zsh newbie here. I've reviewed zsh autocompletion not working on cygwin and tried the solution there but no luck. My mount table: C: on ...
1
vote
1answer
153 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 ...
5
votes
1answer
1k views

Bash-like, non-rotating filename tab completion with PowerShell

Under Windows, using PowerShell, is it possible to make the filename suggestion (using the Tab key) work like with bash under Linux? Let's assume a directory contains 3 directories: example1, example ...
1
vote
2answers
1k 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 ...
0
votes
1answer
358 views

Windows 8 cmd %PATH% tab completion

I have to assume I was confused about the directory I was working in, but when I initially installed Win8, I would swear that I had %PATH% tab completion. As in >pi tab becomes >ping. Was I ...
1
vote
0answers
89 views

How do I get zsh tab completion to “vi **/foo<TAB>” to match and complete the first file matching “foo*” anywhere under the current directory?

How do I get zsh tab completion to cat **/foo<TAB> to match and complete the first file matching foo* in any subdirectory under the current directory? For example, do this while inside a fresh ...
2
votes
1answer
646 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
1answer
108 views

Unquoted completion lists in zsh

I noticed that autocompletion lists in zsh escape all filenames like this Age\ of\ Empires\ 2/ ePSXe\ 1.7.0/ Touhou\ Project/ Windows\ 98\ SE/ Aikisado/ Mathematica\ 8/ ...
4
votes
2answers
2k 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
179 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
105 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 ...
6
votes
2answers
873 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 ...