Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jan 2005 11:52:16 +0000
From:      Mark Ovens <marko@freebsd.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: Tab to Auto-Complete + ....
Message-ID:  <41ECF870.3070400@freebsd.org>
In-Reply-To: <20050118105515.GA75927@catflap.slightlystrange.org>
References:  <200501182030.52598.shinjii@virusinfo.rdksupportinc.com> <20050118105515.GA75927@catflap.slightlystrange.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Daniel Bye wrote:
> On Tue, Jan 18, 2005 at 08:30:52PM +1000, Warren wrote:
>> What is need for me to add/do in order for the pressing of Tab to 
>> autcomplete a name to work?  It works fine in root .. also when i 
>> press the up or down arrow keys it dosent bring up the previous 
>> command issued ...
>> 
>> im using FreeBSD5.3-STABLE
> 
> What shell are you using?  I guess you haven't installed any shells 
> from ports yet, and are using the system default, /bin/sh, which 
> doesn't support autocomplete or command history.

It does support command history and editing, though not auto-complete.

''set -E'' or ''set -V'' at the prompt (or put either - they are 
mutually exclusive - in ~/.profile) will enable command history with
Emacs or vi style command editing respectively.

Regards,

Mark

> The root shell is csh, which does have such things.  So, either set 
> your user's shell to be /bin/tcsh, or install one of the several 
> shells in ports.
> 
> HTH
> 
> Dan
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41ECF870.3070400>