[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: backwards-completion in zsh



On Mon, Sep 09, 2002 at 02:09:53AM +0200, martin f krafft wrote:
> does anyone know how i can backwards-complete search the history of
> the zsh shell? For example, after calling dpkg-buildpackage and then
> dpkg-deb thereafter, how can I enter 'dpkg' and then let the shell
> complete (give options like tab completion, or a menu) which previous
> command starting with 'dpkg' I want?

If you're in emacs emulation mode ('bindkey -e'), then Ctrl-R does this.
In vi mode you can use ESC /. zshzle(1) lists other keystrokes you can
use if those aren't to your taste.

(I use bash rather than zsh, but Ctrl-R at least works there too.)

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: