More Completion Examples


Example:

compctl -o setopt unsetopt

Allows you to complete shell options for the commands setopt and unsetopt


Example:

compctl -j -P "%" kill

Allows completion with the kill command. -j completes on running jobs, and -P arg specifies a prefix to add in front of the completion result.