zsh-users
 help / color / mirror / code / Atom feed
* ZSH's way to bind function to a key in a script?
@ 2011-03-09 13:46 nix
  2011-03-09 14:01 ` Jérémie Roquet
  2011-03-09 14:11 ` Peter Stephenson
  0 siblings, 2 replies; 6+ messages in thread
From: nix @ 2011-03-09 13:46 UTC (permalink / raw)
  To: zsh-users

Hi everyone. I was reading last night about "bindkey" etc. , and i could
not get it working.

#!/bin/zsh

function foo () {

echo "Foo ooo"
}

In this script, how to bind function "foo" to a key. So lets say i press
the Space button and it should trigger foo?






^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-03-10  0:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-09 13:46 ZSH's way to bind function to a key in a script? nix
2011-03-09 14:01 ` Jérémie Roquet
2011-03-09 14:05   ` Jérémie Roquet
     [not found]   ` <34287570baba3024c8cffea8be3da248.squirrel@gameframe.net>
2011-03-09 14:35     ` Jérémie Roquet
2011-03-10  0:22       ` Wendell Hom
2011-03-09 14:11 ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).