Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Feb 2012 08:50:53 +0300
From:      "Sergey V. Dyatko" <sergey.dyatko@gmail.com>
To:        Eitan Adler <lists@eitanadler.com>
Cc:        Chris Rees <crees@freebsd.org>, freebsd-current Current <freebsd-current@freebsd.org>, "Wojciech A. Koszek" <wkoszek@freebsd.czest.pl>, Colin Percival <cperciva@freebsd.org>
Subject:   Re: Enhancing the user experience with tcsh
Message-ID:  <20120210085053.654197cf@laptop>
In-Reply-To: <CAF6rxgnebQUY8azv8fovQPkB%2BGgsQjaByZ6JwnNWjrM1hB65eQ@mail.gmail.com>
References:  <CAF6rxgnebQUY8azv8fovQPkB%2BGgsQjaByZ6JwnNWjrM1hB65eQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 9 Feb 2012 19:52:58 -0500
Eitan Adler <lists@eitanadler.com> wrote:

> In conf/160689 (http://www.freebsd.org/cgi/query-pr.cgi?pr=160689)
> there has been some discussion about changing the default cshrc file.
> 
> I'd like to commit something like the following based on Chris's patch
> at the end of the thread. This post is an attempt to open the change
> to wider discussion.
> 
> commit dbe6cb730686dd53af7d06cc9b69b60e6e55549c
> diff --git a/etc/root/dot.cshrc b/etc/root/dot.cshrc
> --- a/etc/root/dot.cshrc
> +++ b/etc/root/dot.cshrc
> @@ -7,9 +7,10 @@
> 
>  alias h		history 25
>  alias j		jobs -l
> -alias la	ls -a
> +alias la	ls -aF
>  alias lf	ls -FA
> -alias ll	ls -lA
> +alias ll	ls -lAF
> +alias ls	ls -F
> 
>  # A righteous umask
>  umask 22
> @@ -17,19 +18,24 @@ umask 22
>  set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin
> /usr/local/bin $HOME/bin)
> 
>  setenv	EDITOR	vi
> -setenv	PAGER	more
> +setenv	PAGER	less
>  setenv	BLOCKSIZE	K
> 
>  if ($?prompt) then
>  	# An interactive shell -- set some stuff up
>  	set prompt = "`/bin/hostname -s`# "
>  	set filec
> -	set history = 100
> -	set savehist = 100
> +	set history = 10000
> +	set savehist = 10000
> +	set autolist
> +	# Use history to aid expansion
> +	set autoexpand
>  	set mail = (/var/mail/$USER)
>  	if ( $?tcsh ) then
>  		bindkey "^W" backward-delete-word
>  		bindkey -k up history-search-backward
>  		bindkey -k down history-search-forward
>  	endif
> +	set prompt = "[%n@%m]%c04%# "
> +	set promptchars = "%#"
>  endif
> 

what are you thinking about:
+        bindkey "^F" forward-word
+       bindkey "^B" backward-word

?

-- 
wbr, tiger



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