zsh-users
 help / color / mirror / code / Atom feed
* Howto to print ENTER to zle-buffer?
@ 2016-12-13 15:01 Andy Spiegl
  2016-12-13 16:12 ` Bart Schaefer
  0 siblings, 1 reply; 8+ messages in thread
From: Andy Spiegl @ 2016-12-13 15:01 UTC (permalink / raw)
  To: zsh-users

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


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

end of thread, other threads:[~2016-12-16  2:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-13 15:01 Howto to print ENTER to zle-buffer? Andy Spiegl
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

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).