[dev] Simple shell with completion

From: Thomas Levine <__AT_thomaslevine.com>
Date: Wed, 12 Oct 2016 14:56:51 +0000

For my login shell, I want a sh-compatible shell with the ability to
specify complex completions. As far as I can tell, ksh only supports
completions by command and filename. I want to do things like this,
in tcsh.

  complete {folder,refile,scan,show,next,prev} \
    'C_AT_+*@`folders -fast -recurse | sed -e s/^/+/`@'

In the context of certain MH commands, this completes words that start
with "+" with my email folders.

Is there a variant of ksh that allows this level of detail in the
configuration of completions?

If not, I think I want to write a thing that does tab completion and
forwards input and output to a ksh subprocess. Does something like this
exist already?

Or I guess I could try zsh or bash....


Received on Wed Oct 12 2016 - 16:56:51 CEST

This archive was generated by hypermail 2.3.0 : Wed Oct 12 2016 - 17:00:13 CEST