From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1571 invoked by alias); 13 Dec 2016 15:08:09 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 22212 Received: (qmail 28694 invoked from network); 13 Dec 2016 15:08:09 -0000 X-Qmail-Scanner-Diagnostics: from mailout1.lrz.de by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(129.187.255.135):SA:0(-2.3/5.0):. Processed in 3.115633 secs); 13 Dec 2016 15:08:09 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: zsh.Andy@spiegl.de X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at spiegl.de does not designate permitted sender hosts) X-Virus-Scanned: by amavisd-new at lrz.de in lxmhs65.srv.lrz.de Date: Tue, 13 Dec 2016 16:01:01 +0100 From: Andy Spiegl To: zsh-users@zsh.org Subject: Howto to print ENTER to zle-buffer? Message-ID: <20161213150101.lgcl6r44gc5b4sia@spiegl.de> Mail-Followup-To: zsh-users@zsh.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-gpg-key: ID C2CB30F0, available on friendly keyservers near you X-gpg-fingerprint: 9051 50B9 13B0 57B9 10FD 48AC 4FA1 209B C2CB 30F0 X-Accepted-File-Formats: ASCII PDF Open/Free Formats - NO proprietory (e.g. Microsoft) files, please X-how-to-quote: http://quoting.is-easy.de/ X-how-to-ask-questions: http://www.catb.org/~esr/faqs/smart-questions.html X-stupid-disclaimers: http://goldmark.org/jeff/stupid-disclaimers/ X-angstklauseln: http://www.heise.de/artikel-archiv/ct/2014/08/136_Angstklauseln User-Agent: Mutt/1.6.2-neo (2016-08-21) 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