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

How to rebind the hyphen in .zshrc?



Dear all, 

In my .zshrc file I would like to include something like: 

rebind-hyphen { 
	# intended pre-processing  
	zle .self-insert
	# intended post-processing 
}

zle -N rebind-hyphen
bindkey "-" rebind-hyphen 

This produces the following error: 

"rebind-hyphen" undefined-key

If I add: 

bindkey "a" rebind-hyphen 

or 

bindkey " " rebind-hyphen 

there is no error at all and "a" or " " gets bound. 

So, I guess hyphen must be a special input character to zsh. 

Is there a way around this?? 

Thanks! 

Guido 



      New Email names for you! 
Get the Email name you've always wanted on the new @ymail and @rocketmail. 
Hurry before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/



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