From owner-freebsd-current@FreeBSD.ORG Fri Feb 10 06:14:12 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 61096106566C for ; Fri, 10 Feb 2012 06:14:12 +0000 (UTC) (envelope-from sergey.dyatko@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id E07DD8FC08 for ; Fri, 10 Feb 2012 06:14:11 +0000 (UTC) Received: by bkcjg1 with SMTP id jg1so2023771bkc.13 for ; Thu, 09 Feb 2012 22:14:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; bh=zJxRVaOKNp616c/I8/qC0f5v5xyoX/1h8lFWza4qvN8=; b=n6cnBYs2HSRgt9hlRgM4GLmnae0CCH1lezwKRtYLG6inkCrsFCRLZym67ggh/vAEF+ nUeUB3+m3AamiOJWdgV37SS3SAJz/Eugb6gcRqKKcfMCNYY/RT1PDsm1+onyV76UZJJk /xUJJzf5D16c5VrQdgZy0XIBLF63jwrCTJujw= Received: by 10.204.152.219 with SMTP id h27mr1998190bkw.40.1328853037193; Thu, 09 Feb 2012 21:50:37 -0800 (PST) Received: from laptop (m-s.agava.net. [195.222.84.203]) by mx.google.com with ESMTPS id jd17sm14433237bkb.4.2012.02.09.21.50.34 (version=SSLv3 cipher=OTHER); Thu, 09 Feb 2012 21:50:35 -0800 (PST) Date: Fri, 10 Feb 2012 08:50:53 +0300 From: "Sergey V. Dyatko" To: Eitan Adler Message-ID: <20120210085053.654197cf@laptop> In-Reply-To: References: X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Chris Rees , freebsd-current Current , "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 06:14:12 -0000 On Thu, 9 Feb 2012 19:52:58 -0500 Eitan Adler 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