Tero Koskinen tero.koskinen at iki.fi
Thu Jul 8 10:54:05 PDT 2004

On Thu, 8 Jul 2004 09:44:11 -0700
Chris Sechiatano <chris at chris-s.com> wrote:

> Hi,
> I installed ksh on my 5.2.1 system.  In my .profile I have:
> set -o vi
> set -o vi-tabcomplete
> However, the 'set -o vi' doesn't seem to work.  When I log in, ksh is still
> in emacs mode.
> Anybody know how to make it work?

Check your "$HOME/.shrc". By default there is line 'set -o emacs' and ksh
executes that file after $HOME/.profile.

I was bitten by the same problem and it took me a week to figure out what
was going on, especially since on OpenBSD/NetBSD similar $HOME/.profile
worked perfectly (I had no $HOME/.shrc there).

Tero Koskinen - http://iki.fi/tero.koskinen/

More information about the freebsd-questions mailing list