Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to update zsh's completion list with each key typed for commands that take a file/folder as a parameter (e.g. cd). In other words for these kinds of commands, the tab key would be implicitly pressed after each keypress:

cd ~/ (directories in ~/ are shown in the completion lsit)

(directories in ~/ are shown that start with a).


share|improve this question
up vote 2 down vote accepted

I was very curious after reading this question, so I started to research to see if it was possible. After some digging I arrived at auto-fu:

auto-fu works quite well in my (very) brief testing. Hopefully it is what you're after.

share|improve this answer
Wow thanks this is great! A little bit buggy, but exactly what I was looking for. – Felix Apr 1 '13 at 13:05
@Felix: Just for reference, there was a discussion on the zsh-workers list a month ago, resulting in a (improved?) function, which is based on auto-fu: Initial post:, last release: – mpy Apr 1 '13 at 15:18
Too bad there isn't a way to disable the completion behavior for certain commands (auto-fu says it has this feature but it does not work). I use fasd/autojump (j "part of file path) to navigate between directories, and fasd/autojump become unusable with these autocompletion systems because of the completion style for fasd/autojump. – Felix Apr 4 '13 at 17:15
After some time trying both solutions out I stopped using them, they both have severe problems that make them unusable (terminals hang when typing long strings for example). – Felix Apr 12 '13 at 20:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .