From owner-freebsd-current@FreeBSD.ORG Fri Feb 10 03:56:57 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 0C418106566B for ; Fri, 10 Feb 2012 03:56:57 +0000 (UTC) (envelope-from gnemmi@gmail.com) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id D79908FC13 for ; Fri, 10 Feb 2012 03:56:56 +0000 (UTC) Received: by pbcxa7 with SMTP id xa7so1237360pbc.13 for ; Thu, 09 Feb 2012 19:56:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=wR9TN2PdlqDijPUGAtFfB/obP5SMRnkS6+MvSDnC8ec=; b=CRZMcv8IgIwjaX042uuoF4zv9u53EMCoaIAzK6eTQCm67q/xF48vdilF7YdI6Ypzi/ hbDtJLYJ3dRTa8X07QGiiuCqxbdg2XA4+nV2W4vvrFIQmwORVJDd+fCk70Rthsd7+E0n 3X7HxKvsngRPV8Xlk7bNZoh8EUhOlulS18qso= MIME-Version: 1.0 Received: by 10.68.75.11 with SMTP id y11mr12315630pbv.51.1328844466381; Thu, 09 Feb 2012 19:27:46 -0800 (PST) Received: by 10.143.154.1 with HTTP; Thu, 9 Feb 2012 19:27:46 -0800 (PST) In-Reply-To: References: Date: Fri, 10 Feb 2012 00:27:46 -0300 Message-ID: From: Gonzalo Nemmi To: freebsd-current Current Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Chris Rees , Eitan Adler , "Wojciech A. Koszek" , Colin Percival 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 03:56:57 -0000 On Thu, Feb 9, 2012 at 9:52 PM, Eitan Adler wrote: > In conf/160689 (http://www.freebsd.org/cgi/query-pr.cgi?pr=3D160689) > 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 @@ > > =A0alias h =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0history 25 > =A0alias j =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0jobs -l > -alias la =A0 =A0 =A0 ls -a > +alias la =A0 =A0 =A0 ls -aF > =A0alias lf =A0 =A0 =A0 ls -FA > -alias ll =A0 =A0 =A0 ls -lA > +alias ll =A0 =A0 =A0 ls -lAF > +alias ls =A0 =A0 =A0 ls -F > > =A0# A righteous umask > =A0umask 22 > @@ -17,19 +18,24 @@ umask 22 > =A0set path =3D (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin > /usr/local/bin $HOME/bin) > > =A0setenv EDITOR =A0vi > -setenv PAGER =A0 more > +setenv PAGER =A0 less > =A0setenv BLOCKSIZE =A0 =A0 =A0 K > > =A0if ($?prompt) then > =A0 =A0 =A0 =A0# An interactive shell -- set some stuff up > =A0 =A0 =A0 =A0set prompt =3D "`/bin/hostname -s`# " > =A0 =A0 =A0 =A0set filec > - =A0 =A0 =A0 set history =3D 100 > - =A0 =A0 =A0 set savehist =3D 100 > + =A0 =A0 =A0 set history =3D 10000 > + =A0 =A0 =A0 set savehist =3D 10000 > + =A0 =A0 =A0 set autolist > + =A0 =A0 =A0 # Use history to aid expansion > + =A0 =A0 =A0 set autoexpand > =A0 =A0 =A0 =A0set mail =3D (/var/mail/$USER) > =A0 =A0 =A0 =A0if ( $?tcsh ) then > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0bindkey "^W" backward-delete-word > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0bindkey -k up history-search-backward > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0bindkey -k down history-search-forward > =A0 =A0 =A0 =A0endif > + =A0 =A0 =A0 set prompt =3D "[%n@%m]%c04%# " > + =A0 =A0 =A0 set promptchars =3D "%#" > =A0endif > In the same line that Wojciech on the PR ".cshrc should be updated for modern hardware" I always set this ones on /usr/share/skel/dot.cshrc bindkey "\e[1~" beginning-of-line #make Home key work; bindkey "\e[2~" overwrite-mode #make Ins key work; bindkey "\e[3~" delete-char #make Delete key work; bindkey "\e[4~" end-of-line #make End key work; Besides that I add an "if [ -d $HOME/bin ]" and add it to $PATH if it exists, but that has nothing to do with ".cshrc should be updated for modern hardware" ... it jsut comes in really handy. my 2 cents