Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Command Completion and up-arrow
- X-seq: zsh-users 13405
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: "Corwin Zechar" <czech@xxxxxxxxx>
- Subject: Re: Command Completion and up-arrow
- Date: Tue, 28 Oct 2008 23:56:28 +0100
- Cc: zsh-users@xxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=3PgcE60VuEb88puVN9okhxXmMPQcfHfhQjICnNAqDpM=; b=a0ISWYnguVnP0ZqVytpQzr/YXD3scXDrV5njXYv1CLFCBoLo/zzq0OPf6maFwwxwur 23NzjhfwxnL92ew1L58PfB2nqItrldU4fvGkxbwp75drDsO4HngWX6RLnqzNdoZO3QoR 9LpAixgv6g+46wOd5Vud+tICde2jvP0YsW1kQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=pi+yPq7Bf/j6zg1UipCGoCHlHxiOYXE8wcW92yzloZgEOxCUP/9FKALYBG8qL+zf6l q8icr3p160yiED8koFxOguE6ls5mqDI3z9GZ/oJ0VveKnvavEsptyJMzlS3baIJI4grP njqQ1QmJQrWCBST+OsUk5xsU9o8WYwghJk41Y=
- In-reply-to: <490796E5.2070302@xxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <490796E5.2070302@xxxxxxxxx>
2008/10/28 Corwin Zechar <czech@xxxxxxxxx>:
> Hi -
>
> In tcsh, when I put the following lines in my .tcshrc:
>
> bindkey -k up history-search-backward
> bindkey -k down history-search-forward
>
> The effect is that when I type one or more characters and press up-arrow,
> tcsh attempts to match commands in my command history to the characters I
> have typed.
>
> Is there a way to do this in zsh?
yes
> Do I need to write a completion function?
no
Just use the same commands as you used in tcsh, but drop the -k and
you have to write the literal code for "up" and "down", ie something
like ^[[A and ^[[B.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author