Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
rlwrap completion
- X-seq: zsh-workers 23565
- From: Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: rlwrap completion
- Date: Sun, 17 Jun 2007 00:20:23 -0700
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=first1; d=spodhuis.org; h=Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:MIME-Version:Content-Type:Content-Disposition; b=k8f2voEJqyufPPZyfxNxH1qEU2AXxg8ZO8TDc+eNComBjCzT+eKuiKyvVNR7EMb4T2FiNC6lJJ7YWZ78AM3IFHzXp8arJtTDCntro0nOvOFGlXei2jXen5p0iBkivLAFsGIMa0udtGGdhDBc97p1mrYisF5PhSyGX6Dr6DR5dNA=;
- Mail-followup-to: zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
rlwrap is "readline wrap", the GNU Readline version of fep(1), the
front-end processor which is dependent upon BSD libc; rlwrap is rather
more portable. For any command which reads input line-by-line, rlwrap
provides full readline semantics to that command.
Eg: rlwrap telnet localhost 25
The attached lets me tab-complete properly and is a grievous rip-off of
Completion/Zsh/_command.
Is there a simpler way to do this?
-Phil
#compdef rlwrap
if [[ CURRENT -ge 3 ]]; then
compset -n 2
_normal
else
local expl
_wanted commands expl 'wrapped command' compadd "$@" -k commands
fi
Messages sorted by:
Reverse Date,
Date,
Thread,
Author