Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: bindkey/termcap



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