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

Re: bindkey -s '^[[18~' '^d^c'



Peter Stephenson <p.stephenson@xxxxxxxxxxx> wrote in

> Yes, the second string is interpreted like the first, so ^d becomes
> Ctrl d and ^c becomes Ctrl c.  You need to quote them, i.e. you need
> two layers of quoting, the one you've got for the comand line, plus
> another level for key interpretation.
> 
>   bindkey -s '^[[18~' '\^d\^c'
> 
> The manual does say this if you persist, but there's no pointer from
> the entry for the -s option to tell you the information's there.

> 
thanks this now works just fine , the r d=c solution was less useful 
because it entered history.




-- 
zzapper
https://twitter.com/dailyzshtip



Messages sorted by: Reverse Date, Date, Thread, Author