Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: bindkey/termcap
- X-seq: zsh-users 6412
- From: Skye Poier <skye@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: bindkey/termcap
- Date: Fri, 25 Jul 2003 15:08:29 -0700
- In-reply-to: <20030725214312.GG20823@xxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20030725211024.GG23355@xxxxxxxxxx> <20030725214312.GG20823@xxxxxxxxxxxxxxxx>
Word on the street is Dan Nelson said:
> # Usage: bindtc <cap> <default> <zsh-command>
> # If <cap> is unavailable, use <default>
> bindtc ()
> {
> local keyval=$(echotc "$1" 2>&-)
> [[ $keyval == "no" ]] && keyval=""
> bindkey "${keyval:-$2}" "$3"
> }
Sweet :D
Skye
Messages sorted by:
Reverse Date,
Date,
Thread,
Author