Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jul 2004 20:53:59 +0300
From:      Tero Koskinen <tero.koskinen@iki.fi>
To:        Chris Sechiatano <chris@chris-s.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: ksh
Message-ID:  <20040708205359.725747b3.tero.koskinen@iki.fi>
In-Reply-To: <20040708164411.GA98262@chris-s.com>
References:  <20040708164411.GA98262@chris-s.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 8 Jul 2004 09:44:11 -0700
Chris Sechiatano <chris@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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040708205359.725747b3.tero.koskinen>