From owner-freebsd-current@FreeBSD.ORG Fri Feb 10 15:45:55 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 C44C01065670; Fri, 10 Feb 2012 15:45:55 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-tul01m020-f182.google.com (mail-tul01m020-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 738478FC1B; Fri, 10 Feb 2012 15:45:55 +0000 (UTC) Received: by obcwo16 with SMTP id wo16so5333127obc.13 for ; Fri, 10 Feb 2012 07:45:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=CyWwJKwluaDF9Tu5tOCB3FQghyX6E/0w7WLzNFTTzSA=; b=niCohwfrugvOX31za+YXDtNF97mbormGi4OqWkfUkHpDpcZ6ERYGhan1NGD03ZLQOM v6BWfbS0y5pd7uLJ688Z8TrFCRezb9FJ159qXX5gLwqLHa/P0G5aH3plBRZqjxdE+0Lb c4jyRJ4xzE7Q0/nZPWzo8DHD/ir26XV86mqq0= MIME-Version: 1.0 Received: by 10.50.156.166 with SMTP id wf6mr4717405igb.20.1328888754496; Fri, 10 Feb 2012 07:45:54 -0800 (PST) Sender: utisoft@gmail.com Received: by 10.231.183.21 with HTTP; Fri, 10 Feb 2012 07:45:53 -0800 (PST) Received: by 10.231.183.21 with HTTP; Fri, 10 Feb 2012 07:45:53 -0800 (PST) In-Reply-To: <201202102157.58497.erichfreebsdlist@ovitrap.com> References: <201202102037.30996.erichfreebsdlist@ovitrap.com> <201202102157.58497.erichfreebsdlist@ovitrap.com> Date: Fri, 10 Feb 2012 15:45:53 +0000 X-Google-Sender-Auth: _xRWUgjAiIDVD_qLPoiMNLBXo90 Message-ID: From: Chris Rees To: Erich Dollansky Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Warren Block , "Wojciech A. Koszek" , Miroslav Lachman <000.fbsd@quip.cz>, Eitan Adler , freebsd-current@freebsd.org, Colin Percival , 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 15:45:55 -0000 On 10 Feb 2012 14:58, "Erich Dollansky" wrote: > > Hi Eitan, > > On Friday 10 February 2012 21:03:52 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 > > sorry for going a bit far off your route. > > > > The changes I proposed were designed to add value while continuing to > > be non-annoying to the vast majority of users. I'd like feedback about > > the specific patch I proposed. We can also create a wiki page for > > more awesome tcsh examples. > > > > 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 > > ok, makes sense. > > > alias lf ls -FA > > -alias ll ls -lA > > +alias ll ls -lAF > > +alias ls ls -F > > > ok, makes sense. > > > # 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) > > I use the $HOME/bin on my machines but I am not so sure to make this a general thing. > > > > > setenv EDITOR vi > > -setenv PAGER more > > +setenv PAGER less > > setenv BLOCKSIZE K > > ok, makes sense. > > > > > if ($?prompt) then > > # An interactive shell -- set some stuff up > > - set prompt = "`/bin/hostname -s`# " > > + set prompt = "[%n@%m]%c04%# " > > + set promptchars = "%#" > > I would add a > > set ellipsis > > here. It makes the prompt shorter when needed. > Hence the %c04 modification to the path :) Chris