From: "Jörg Sommer" <joerg@alea.gnuu.de>
To: zsh-workers@sunsite.dk
Subject: Re: How could one prepend a string to every command?
Date: Wed, 9 Jan 2008 11:07:08 +0000 (UTC) [thread overview]
Message-ID: <slrnfo9ams.cgh.joerg@alea.gnuu.de> (raw)
In-Reply-To: <c21da7250801090144s3be41a09l91fc6f35c469ecbb@mail.gmail.com>
Hi Ian,
"Ian Tegebo" <ian.tegebo@gmail.com> wrote:
> Is there any way zsh could prepend a string, e.g. '/usr/bin/env', to
> each command? I saw 'precmd' but I don't think that's what I want.
Maybe you can replace the accept-line widget.
accept-line()
{
BUFFER="/usr/bin/env $BUFFER"
zle .accept-line
}
zle -N accept-line
Bye, Jörg.
--
“Unfortunately, the current generation of mail programs do not have
checkers to see if the sender knows what he is talking about”
(Andrew S. Tanenbaum)
parent reply other threads:[~2008-01-09 11:09 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <c21da7250801090144s3be41a09l91fc6f35c469ecbb@mail.gmail.com>]
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=slrnfo9ams.cgh.joerg@alea.gnuu.de \
--to=joerg@alea.gnuu.de \
--cc=zsh-workers@sunsite.dk \
/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).