Tab to Auto-Complete + ....
Mark Ovens
marko at freebsd.org
Tue Jan 18 04:26:53 PST 2005
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
More information about the freebsd-questions
mailing list