2
votes
3answers
38 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 ...
2
votes
1answer
80 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 ...
0
votes
0answers
85 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 ...
1
vote
2answers
294 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
0answers
70 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 ...
4
votes
1answer
89 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/ ...
0
votes
5answers
151 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
91 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 ...
3
votes
3answers
572 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
1k 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
86 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
2answers
637 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 ...
2
votes
1answer
201 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
987 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 ...
3
votes
1answer
572 views

Zsh .. (parent directory completion)

In zsh when I type .. and Press Tab I would like it to expand to ../. At the moment, zsh looks for a directory with two periods in the name and expands to that (such as .emacs.d). Which option ...
1
vote
1answer
658 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 ...
1
vote
1answer
230 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 ...