From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@sunsite.dk
Subject: Re: insert a partial command into the command line
Date: Wed, 28 Jun 2006 20:13:26 -0700 [thread overview]
Message-ID: <060628201326.ZM20440@torch.brasslantern.com> (raw)
In-Reply-To: <04667443@wizzle.ran.pp.ru>
On Jun 24, 3:24pm, Artem Chuprina wrote:
}
} xterm -e zsh -i -t
}
} and it will do the most valuable thing of this - allow me to write a
} command with completion and then exit. But I need to write all the
} command and manually add '&' to detach it.
Put this in your ~/.zshrc file:
if [[ -o interactive && -o single_command ]]
then
print -z "$*"
function auto-bg {
BUFFER="{ $BUFFER } &|"
zle .accept-line
}
zle -N accept-line auto-bg
fi
Now you run zsh like
xterm -e zsh -s -t -i "ssh some.host.name "
The -s is needed to prevent zsh from treating the argument as the name
of a script file.
prev parent reply other threads:[~2006-06-29 3:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-24 11:24 Artem Chuprina
2006-06-29 3:13 ` Bart Schaefer [this message]
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=060628201326.ZM20440@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-users@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).