Tab bundled with KSH in Emacs mode without bindings

I am trying to enable autocomplete for the command line in emacs mode. When I try:

set -o emacs bind '^I'=complete bind '^I'=complete-list 

and relog on, I get the error "bind command not found".

Is there any other way for emacs autofill taboos i.e. Does the tab end with the first difference? If not, how to set bindings in ksh?

thanks

+4
source share
2 answers

bind bash / readline-specific.

From ksh faq ,

  Q6.  Does ksh support file name completion?
 A6.  Yes, it does.  The default key binding is <ESC> <ESC>
         however, starting with the 'g' point release, <TAB> also works
         for completion.  Note, the vi users need to set -o viraw
         in order to get <TAB> completion to work.

ksh93g was released on 1994-04-30, so I am very surprised if it does not work for you ... what is your version of ksh ?

+6
source

As you know, key binding was introduced in ksh93,

Q5. What are the main new features of KornShell 1993?
A5. The only major new interactive feature is key binding .... ( FAQ KSH-93 )

In emacs mode, by pressing

 <ESC>= 

provides a list that matches the text that you typed to this point.

0
source

Source: https://habr.com/ru/post/1286440/


All Articles