From: Andy Spiegl <zsh.Andy@spiegl.de>
To: zsh-users@zsh.org
Subject: Howto to print ENTER to zle-buffer?
Date: Tue, 13 Dec 2016 16:01:01 +0100 [thread overview]
Message-ID: <20161213150101.lgcl6r44gc5b4sia@spiegl.de> (raw)
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
next reply other threads:[~2016-12-13 15:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-13 15:01 Andy Spiegl [this message]
2016-12-13 16:12 ` Bart Schaefer
2016-12-13 16:47 ` Andy Spiegl
2016-12-13 17:30 ` Bart Schaefer
2016-12-13 19:29 ` Andy Spiegl
2016-12-14 1:03 ` Bart Schaefer
2016-12-15 18:20 ` Andy Spiegl
2016-12-16 2:29 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161213150101.lgcl6r44gc5b4sia@spiegl.de \
--to=zsh.andy@spiegl.de \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).