Date: Fri, 10 Feb 2012 21:57:58 +0700 From: Erich Dollansky <erichfreebsdlist@ovitrap.com> To: Eitan Adler <lists@eitanadler.com> Cc: Warren Block <wblock@wonkity.com>, "Wojciech A. Koszek" <wkoszek@freebsd.czest.pl>, Miroslav Lachman <000.fbsd@quip.cz>, Chris Rees <crees@freebsd.org>, freebsd-current@freebsd.org, Colin Percival <cperciva@freebsd.org>, Alexander Leidinger <Alexander@leidinger.net>, Gonzalo Nemmi <gnemmi@gmail.com> Subject: Re: Enhancing the user experience with tcsh Message-ID: <201202102157.58497.erichfreebsdlist@ovitrap.com> In-Reply-To: <CAF6rxgnfmU4vyZ_ERbodf8x6ALWps-5HcHvpQhQE=xVokzNbCg@mail.gmail.com> References: <CAF6rxgnebQUY8azv8fovQPkB%2BGgsQjaByZ6JwnNWjrM1hB65eQ@mail.gmail.com> <201202102037.30996.erichfreebsdlist@ovitrap.com> <CAF6rxgnfmU4vyZ_ERbodf8x6ALWps-5HcHvpQhQE=xVokzNbCg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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. > 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 > Ok again. Erich > > > > -- > Eitan Adler > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202102157.58497.erichfreebsdlist>