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

rlwrap completion



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