Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Howto to print ENTER to zle-buffer?
- X-seq: zsh-users 22212
- From: Andy Spiegl <zsh.Andy@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Howto to print ENTER to zle-buffer?
- Date: Tue, 13 Dec 2016 16:01:01 +0100
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Hi, I want to run a command put something like this at the end of my .zshrc:
print -z "command-to-run args"
zle accept-line
But I get the (understandable) error:
/home/andy/.zshrc:zle:822: widgets can only be called when ZLE is active
Can zsh be told somehow to "press enter"?
Thanks a lot,
Andy
Messages sorted by:
Reverse Date,
Date,
Thread,
Author