The tag has no usage guidance.

learn more… | top users | synonyms

4
votes
1answer
951 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 ...
3
votes
3answers
839 views

Zsh, directory tab-completion with prefix

I have a directory where I put all my projects in, let's say it's ~/projects as an example. I've made a command called s which takes one argument, and moves me into that directory. E.g.: s foo moves ...
2
votes
3answers
2k views

zsh completion will not work in emacs shell

I'm learning about the more powerful tab-completion and expansion capabilities of zsh, and they don't seem to work when I run zsh under emacs with M-x shell: cat $PATH<TAB> expands the tab ...
2
votes
2answers
88 views

Is there a way to tell the shell (zsh preferably) about a command?

I defined an alias: alias school="cd ~/School/3BaFys/" to quickly go to the folder 3BaFys which contains all of the directories I need this year. Is there a way to tell zsh that when I do: ...
5
votes
3answers
523 views

Vim command mode complete word

Is there a way to get Vim in command mode to complete words from the current file? Say I have this file: one two three once and I enter command line mode :myruncommand o| where | denotes the ...
6
votes
2answers
263 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
804 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
172 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
209 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
1k 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 ...
1
vote
1answer
750 views

File completion colors for zsh

When I use Tab to complete a filename and more than one file matches, zsh uses an unsuitable color. Consider the following screenshot which exemplifies the problem: I have entered vi .zsh and ...
4
votes
1answer
193 views

How can I enable colored completion in Vim?

I understand that this questions could be a bit unclear, but I think an example will help. I'm in Vim and want to open a file. There are a few files in my directory and some have the same prefix. I ...
14
votes
1answer
3k 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 ...
12
votes
3answers
3k views

Bash completion makes bash start slowly

Starting a bash on my ubuntu system takes about 2 seconds. If I remove loading /etc/bash_completition in .bashrc it starts without delay. Of course I don't want to give up completition and I don't ...
1
vote
1answer
622 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 ...
6
votes
2answers
2k views

How can I get emacs under windows to autocomplete paths in shell buffers using “\” instead of “/”?

I'm using emacs to work on linux, windows, osx and everything is fine except one annoying problem with shell buffers under windows. Autocompleting filenames would work great (better than standard ...
5
votes
2answers
275 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
2k 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 ...
0
votes
0answers
310 views

Slow tab completion for paths in`make' arguments

When I'm specifying an argument for make like PREFIX_PATH=/some/path/to/prefix/ I sometimes experience very slow completion for my directories (a few seconds). It's annoying when I've got several ...
1
vote
1answer
242 views

ZSH autocomplete second argument

I'm on my $HOME directory, there is a foo.zip file. I want to extract it into $HOME/work directory, which exists I type unzip foo it expands the filename, I enter but it doesn't expand the "w" to ...
2
votes
0answers
213 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 ...
0
votes
1answer
523 views

TextMate on OS X - tab completion not working

What gives. I'm obviously being really thick. I open a file using TextMate (mate r1577 (2010-11-18)) on Mac OS X (10.5.8) When I try and use tab to complete a snippet, for example vp<TAB> does ...
3
votes
0answers
316 views

Escaping spaces in tab-completion in a Cygwin shell subprocess on GNU Emacs on Windows

I use GNU Emacs on Windows and Cygwin as my shell. If I create a Cygwin shell subprocess with M-x shell, I get a proper bash prompt. If I type this: cd ~/My<tab> it tab-completes to cd ...
2
votes
2answers
328 views

Can I ignore dot files with cmd.exe tab completion?

I unfortunately need to work with cmd.exe from time to time and it usually doesn't bug me too much except when I am editing a file in vim and then try to run that file with tab-completion. If I have ...
3
votes
1answer
364 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 ...
7
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 ...
4
votes
8answers
922 views

How to minimize typing when frequently changing directories?

What are some good Linux commands to make switching between different directories on the command line easier? I often have to switch between different directories with long names, e.g. cd ...