HomeFreeBSD

sh: improve command completion

Description

sh: improve command completion

When there are many matches, find the longest common substring starting
from the beginning of each command and use that to replace input.

As an example: on my system, llv<tab> will be autocompleted to llvm-
and another <tab> will print all matching llvm commands.

Details

Provenance
pstefAuthored on Sep 22 2021, 4:23 PM
Parents
rGe36d0e86e328: Revert "linux32: add a hack to avoid redefining the type of the savefpu tag"
Branches
Unknown
Tags
Unknown