From owner-freebsd-current@FreeBSD.ORG Fri Feb 10 14:29:38 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C6AA106566B; Fri, 10 Feb 2012 14:29:38 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id 8E5458FC08; Fri, 10 Feb 2012 14:29:37 +0000 (UTC) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 3E79C28431; Fri, 10 Feb 2012 15:29:35 +0100 (CET) Received: from [192.168.1.2] (ip-86-49-61-235.net.upcbroadband.cz [86.49.61.235]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 1229D28423; Fri, 10 Feb 2012 15:29:34 +0100 (CET) Message-ID: <4F3529CD.1050308@quip.cz> Date: Fri, 10 Feb 2012 15:29:33 +0100 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.19) Gecko/20110420 Lightning/1.0b1 SeaMonkey/2.0.14 MIME-Version: 1.0 To: Eitan Adler References: <4F34FA17.7080000@quip.cz> <20120210133629.Horde.uDX6B5jmRSRPNQ9NDdkRUI4@webmail.leidinger.net> <201202102037.30996.erichfreebsdlist@ovitrap.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Warren Block , "Wojciech A. Koszek" , Chris Rees , freebsd-current@freebsd.org, Colin Percival , Erich Dollansky , Alexander Leidinger , Gonzalo Nemmi Subject: Re: Enhancing the user experience with tcsh X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Feb 2012 14:29:38 -0000 Eitan Adler wrote: > Picking a random person to reply to. > > There are a lot of good suggestions in this thread, but can we please > remember a few things: > > - Users can always add their own ~/.cshrc > - Many users will get annoyed by what is someone else's amazing setup The main problem of this is: novice user don't know how to enable some "advanced" settings for default FreeBSD shell (csh / tcsh) or even don't know they exist. But all skilled persons are able to disable "annoing" new settings in few seconds. I think that default FreeBSD install should be more friendly to new users. That's why I am propossing better support of command completion "out of the box". (I will still use my own set of changes in rc files which I am deploying in a first step on all our machines) [...] > For the record this is the current version of the patch I'd like to > commit: Note that it slightly changed from the original (I removed the > duplicate prompt setup and reorganized where the edits are made to > make the diff look nicer). > > commit 3ea4ea3a59d14cb060244618dd89d7dd0170bee1 > 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,15 +18,19 @@ 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 prompt = "[%n@%m]%c04%# " > + set promptchars = "%#" > 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 I am fine with this change. It is better than nothing. :) Miroslav Lachman