Re: Enhancing the user experience with tcsh

From: Oliver Pinter <oliver.pntr_at_gmail.com>
Date: Sat, 11 Feb 2012 00:13:20 +0100
On 2/10/12, Eitan Adler <lists_at_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
> _at__at_ -7,9 +7,10 _at__at_
>
>  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
> _at__at_ -17,19 +18,24 _at__at_ 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_at_%m]%c04%# "
> +	set promptchars = "%#"
>  endif
>
> --
> Eitan Adler
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
>

this is what I use, this based on somewhat, that I found before ~3
years in Internet + mostly rewrited and extended:

http://oliverp.teteny.bme.hu/git/?p=base/tcshrc.git;a=tree
Received on Fri Feb 10 2012 - 22:36:44 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:24 UTC