NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: OT: User-friendly /bin/sh



On 31/07/2020 20:11, Jordan Geoghegan wrote:
>> Can some Good Samaritan please point me to a HOW-TO that would provide
>> the needed basic instructions?
>>
>> Thank you.
>>
>
set -E
Enable emacs style command line editing. There is a Vi style one as well.

set -o tabcomplete
Turn on tab completion for filenames.

With both of these set sh has file completion, history and editing.

All found through judicious searching of the output of man sh. ;)

Only slightly counterintuitive bit is that set -o tabcomplete turns it on and set +o tabcomplete turns it off.

Running set -o with no additional arguments displays the options that can be set.

Mike


Home | Main Index | Thread Index | Old Index