Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Howto to print ENTER to zle-buffer?



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