Date: Tue, 18 Jan 2005 12:26:46 +0000 From: Mark Ovens <marko@freebsd.org> To: freebsd-questions@freebsd.org Subject: Re: Tab to Auto-Complete + .... Message-ID: <41ED0086.6070602@freebsd.org> In-Reply-To: <200501182210.29827.shinjii@virusinfo.rdksupportinc.com> References: <200501182030.52598.shinjii@virusinfo.rdksupportinc.com> <41ECF870.3070400@freebsd.org> <20050118120305.GB75927@catflap.slightlystrange.org> <200501182210.29827.shinjii@virusinfo.rdksupportinc.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Warren wrote:
> On Tue, 18 Jan 2005 10:03 pm, Daniel Bye wrote:
>> On Tue, Jan 18, 2005 at 11:52:16AM +0000, Mark Ovens wrote:
>> > 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.
>>
>> Live and learn! Thanks for that.
>>
>> Dan
>
> I changed the shell type using: chsh -s /bin/csh
> re-logged in as it prompts and still no go with anything .. so i just simply
> installed putty and used it to connect to each machine.
>
> Thanks for all the help.
>
Put some or all of these in ~/.cshrc
# size of history buffer
set history = 100
# enable auto-complete
set filec
# stop it beeping
set nobeep
# ignore *.o files for file completion
set fignore = '.o'
# '%' prompt for normal user; '#' for root/su
set promptchars="%#"
# /path/to/cwd{cmd number}%
set prompt="%/{!}%# "
# List matches when autocompleting
set autolist=true
# enable spelling correction
set correct=all
# Useful key bindins
bindkey "^W" backward-delete-word
bindkey -k up history-search-backward
bindkey -k down history-search-forward
bindkey "^?" backward-delete-char
bindkey "\e[3~" delete-char
bindkey "\e[1~" beginning-of-line
bindkey "\e[4~" end-of-line
See csh(1) for loads of additional options!
HTH
Mark
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41ED0086.6070602>
