Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I try stuff like in my .profile:

set -o vi-tabcomplete

I get:

.profile[292]: vi-tabcomplete: bad option(s)

Does anyone know of a workaround?

share|improve this question

migrated from Nov 5 '09 at 0:56

This question came from our site for professional and enthusiast programmers.

It depends which flavour of ksh you have.

Older pre-ksh-93 shells support 'double-escape' auto complete - so you hit Esc twice instead of Tab once.

ksh-93 uses set -o viraw to enable tab completion.

Public-domain ksh, pdksh which you may be able to obtain and use if your environment permits, is the one that supports the set -o vi-tabcomplete syntax. It also supports set -o vi-esccomplete for compatibility with older ksh variants.

share|improve this answer

In Fedora 11's ksh, you get tab completion after just set -o vi

Version M 93t 2008-11-04
$ rpm -q -a | grep ksh
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .