1
vote
1answer
43 views

Adding file autocompletion in rake with zsh

I have oh-my-zsh installed with the rails plugin, when I use zsh completion with rake, it completes with the tasks list from rake -T. When I run a specific test, one of the parameters is the path to ...
1
vote
1answer
103 views

Zsh autocomplete function with sed

I'm struggling to write an ZSH autocomplete function. My goal is to autocomplete ta's and tk's first argument with the projects listed in tmux list-sessions and tmuxinator list. Here's what I have so ...
4
votes
1answer
32 views

ZSH autolearn completition plugin

Is there something like "autolearn" command/plugin for zsh? By this I mean when I type command option option1 ... and zsh don't know about options for this particular command I want zsh to remember ...
0
votes
2answers
53 views

Zsh: how to auto complete after a command?

everyone. It's a little difficult to explain what I want to do. I want to create a script 'example', which can input long commands for you after you run it with short parameters. For example, $ ...
1
vote
0answers
92 views

Unintended autocomplete or alias in Terminal

There is a "strange" autocomplete function in my macbook. If I try to type "ps -aux" in terminal (iTerm or TotalTerminal) with the hit of "s" in ps, automatically this happens: "ps -p $$ # Tells the ...
1
vote
1answer
158 views

Disabling “oh-my-zsh” SVN completion

I am using Zsh version: 4.3.11 with the oh-my-zsh framework. When coupled with "oh-my-zsh", Zsh will attempt to autocomplete SVN (and Git for that matter) commands when the TAB key is pressed during ...
1
vote
1answer
55 views

How can I complete directory entries that are under a subdirectory?

I have an function in my .zshrc called c that is defined like so c() { cd ~/Code/$1 } How can I teach ZSH to treat this c function just like I had done cd ~/Code from the command line so that it ...
0
votes
0answers
77 views

Source ~/.zshrc needed after OSX terminal restart

I have some zsh custom autocomplete set up in OSX for a custom command I have. These autocomplete functions are defined in ~/.zshrc. If I restart the OSX Terminal, I see that the autocomplete does not ...
0
votes
0answers
62 views

How stop zsh backspacing over trailing underscore in autocomplete filename?

I have several files in my test directory that all start with 'test_'. I frequently use autocomplete to specify one of these files to edit or run. When I press tab to autocomplete, zsh correctly fills ...
0
votes
1answer
962 views

Many commands are not found by zsh

If I tab autocomplete, most of the time I get errors: If I do vim [TAB] to look for the files in the folder, it just jumps to the next command line. If I try to execute rvm use 2.0.0 --default I get ...
0
votes
1answer
69 views

ZSH, colourify & autocompletion

I have zsh with oh-my-zsh, I added an alias to color the make output using alias make="colourify make" but when I use it, make autocompletion does not work anymore. If I use unalias make, the make ...
4
votes
1answer
152 views

Can I make zsh expand tildes in double quotes?

Ever since I discovered you can use filename completion in double quotes, I've been using it for files with spaces in their names (like /Library/Application Support). It looks nicer and is easier to ...
1
vote
1answer
33 views

autocompletion of .. from a symlinked path

Say I cd to a symlink then try to tab-autocomplete on top of ../ $ mkdir /foo/bar $ ln -s /foo/bar /baz/bar $ cd /baz $ cd bar $ cd ../{tab} In bash, autocomplete presents me with the contents of ...
2
votes
1answer
60 views

zsh autocomplete menu press enter once

I'm looking for a zsh option that allows me to only press enter once when the autocompletionmenu in open. The it works now I have to press enter to select an item in the menu and make it go away and ...
0
votes
2answers
419 views

Mercurial: how to show branches in autocompletion

It is possible to update to a specific tag or branch with the hg update <branch-or-tag> command. However, the built-in completion only shows me tags (not branches). So when i type hg update and ...
2
votes
2answers
172 views

My zsh autocompletion for CDPATH stopped working

I am using zsh and I always were able to cd right into paths that are part of my CDPATH configuration but, starting a few days ago, the completion stopped working. mbp:~ $ echo $CDPATH ...
2
votes
0answers
65 views

Set timeout on zsh autocompletion

I like ZSH's autocompletion feature, but often it hangs my terminal. I'd like to set timeout on autocompletion so it cancels (kills) itself after n miliseconds.
1
vote
0answers
73 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 ...
0
votes
1answer
237 views

zsh completion-expansion & cursor position

Assume there are three dirs: abc adc aec I want to type cd dc, press Tab and get cd adc (trailing / is not important) completion. Is it possible? What is the simplest way to achieve this behaviour? ...
4
votes
2answers
96 views

when checkout a previous commit, Is there a quick way to input the log commit hash?

It's really tedious to type the following command: git checkout 622fe0a9b6bffdf4723026ae6e673245b510ac66 Is there autocomplete or shortcut to do this?
2
votes
1answer
153 views

Adding a trigger command to autocomplete function in zsh

When you define an alias like alias g=git, the shell will pick it up and run the corresponding autocomplete function. Now, there's a program out there called hub, which is basically a supserset of ...
2
votes
1answer
107 views

How can I filter zsh's completion candidates?

I'm trying to autocomplete an OS X defaults domain. I type: $ defaults write <TAB> And I get lot of results, as you might imagine: com.apple.AOSNotification.Accounts com.apple.ATS ...
17
votes
1answer
4k views

oh-my-zsh history completion

I have recently switched to zsh, using robbyrussell's oh-my-zsh. Before that i used bash with a lot of custom stuff and i am only missing one thing because zsh is trying to be 'too smart': If i type ...
2
votes
1answer
258 views

can I make zsh filename completion work like Vim?

I use setopt menu_complete so that I can hit TAB repeatedly to get different filename completions in zsh. However, I would also like to be able to type: ls ~/*.txt<TAB> and then use TAB to ...
5
votes
4answers
1k views

Does a fuzzy matching mode exist for the zsh shell?

I've recently fallen in love with efficient text completion systems. One of my favourite kinds of completion is so-called fuzzy completion. This is a mode where the program will complete the user's ...
6
votes
1answer
757 views

Git completion with aliases

I have a convenient dotfiles repo on Github for you all to look at, here. FYI, git is installed via Homebrew, as with most of the executables on my system. My git-completion in zsh works fine when I ...
3
votes
1answer
711 views

zsh completion after installing/removing packages

How does zsh figure out currently installed packages on Debian, and how can I update that information? After running apt-get install, zsh won't autocomplete that package as a possible parameter for ...
3
votes
2answers
405 views

How can zsh be configured to autocomplete directory name with camelcase matching?

Eclipse and Resharper have a nice way of navigating files. If I have the following folders (or files) in my current directory MyReallyLongName MyReallyLongAndFunName MyReallyLongAndNotReallyFunName ...
2
votes
1answer
253 views

How can I stop zsh from autocorrecting on proper commands?

I'm having a very strange issue with an install of zsh on my local machine. It attempts to correct commands I've typed very aggressively. Here are two examples. If I type which ssh it will ask me if ...
4
votes
2answers
340 views

XCode Command-T-style autocomplete for zsh

I've just started using the Command-T plugin for vim, and it rocks. In case you haven't heard of it, it allows you to type something like this: Sb to select Something.hs-boot from the list ...
1
vote
1answer
154 views

zsh: Autocomplete ambigously only on second tab press

Currently, when I hit TAB, and there's more than one option to autocomplete, zsh will show all of them. If I hit TAB a second time, it will pick the first. I'd like to change this to: First TAB: ...
12
votes
2answers
416 views

Is it possible to use different zsh menu selection behaviour for different commands?

I'm using the menu select behaviour in zsh, which invokes a menu below the cursor where you can see the various possibilities. The .zshrc option i have set for this is zstyle ':completion:*' menu ...
4
votes
1answer
632 views

What's the easiest way to add custom filename autocomplete behavior for a command?

I want to add some rudimentary filename completion for programs like ghc, ghci (Haskell compilers), lyx (typesetting program), namely that hitting [tab] after one of the above should offer ...
4
votes
1answer
1k views

Bash autocomplete like zsh

I'm using bash, but I'd like to have zsh style autocomplete (you hit tab and it tabs through the possibilities), rather than what bash seems to do, which is display a list of possibilities but not ...
3
votes
1answer
1k views

zsh cdpath and autocompletion

My CDPATH in zsh looks like this: export CDPATH='.:..:../..' Unfortunately, this means that when I try to autocomplete after typing 'cd ', there're way too many irrelevant autocomplete options, ...
3
votes
2answers
561 views

zsh autocomplete wildcard across the network

One of my favorite features of zsh is autocomplete, especially when I'm completing a filename on a networked machine. But how to you include wildcards (like *) and have it autocomplete from the ...
4
votes
2answers
701 views

Strange zsh autocomplete behaviour

Every time I use tab autocompletion with zsh instead of completing the current string, it gives me a new string + options to complete. It's hard to explane, so here is an example. This is what would ...
1
vote
1answer
233 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 ...
3
votes
1answer
764 views

can zsh do 2 stage completion?

Let's say I have the following files in the directory: abc123ABC abc123QWE abc456 Now suppose I type a and hit TAB. In bash the completion as it usually works would just complete abc and stop ...
1
vote
2answers
339 views

Zsh: How can I disable the “searching…”-feature?

When I misspell a command or directory and press enter, zsh first says command not found, but then displays the annoying "searching..." text, which can take a few seconds to show me, that nothing has ...
-1
votes
4answers
3k views

why zsh git autocompletion is not as good as bash? [closed]

zsh is recommended all over the place and is supposed to be one of the more advanced shells out there. Why then I find it that zsh autocompletion lacking in many areas that I'm used to with bash? in ...