Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
ZSH's way to bind function to a key in a script?
- X-seq: zsh-users 15848
- From: nix@xxxxxxxxxxxxxxxx
- To: zsh-users@xxxxxxx
- Subject: ZSH's way to bind function to a key in a script?
- Date: Wed, 9 Mar 2011 15:46:44 +0200
- Importance: Normal
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author