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@+*@`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....



Reply via email to