From owner-freebsd-current@FreeBSD.ORG Fri Feb 10 14:04:24 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 64EFD1065672; Fri, 10 Feb 2012 14:04:24 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8218D8FC0C; Fri, 10 Feb 2012 14:04:23 +0000 (UTC) Received: by wibhn14 with SMTP id hn14so3008064wib.13 for ; Fri, 10 Feb 2012 06:04:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=0o4o7rFXRuXGfb4powHd1aJHqLqrsLu9qglnEH3M7+I=; b=TMyQrl9ebVLfvyvMtBc22DVV5YetAwdTKMMhh1GM8c2kQmeZ7h3FuqYTSr3EjO5Uhs yac1LxYD0nIFkgI7KFYp9eV0vhHFuM/5TY3OmuMYHm7XmnfG6gPpehR7fumwjOxMxB2g WGCU+rqd+o25gAvwdMj70sBDDkGKVLl4Fmzb8= Received: by 10.180.83.70 with SMTP id o6mr3332413wiy.19.1328882662596; Fri, 10 Feb 2012 06:04:22 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.103.10 with HTTP; Fri, 10 Feb 2012 06:03:52 -0800 (PST) In-Reply-To: <201202102037.30996.erichfreebsdlist@ovitrap.com> References: <4F34FA17.7080000@quip.cz> <20120210133629.Horde.uDX6B5jmRSRPNQ9NDdkRUI4@webmail.leidinger.net> <201202102037.30996.erichfreebsdlist@ovitrap.com> From: Eitan Adler Date: Fri, 10 Feb 2012 09:03:52 -0500 Message-ID: To: Erich Dollansky Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQloySiC14qivGlX+W9/IW8+7JUHeZGuWfJY7p1nfw604NHUQK/JncduOuc3xnaOQn7dK7NS Cc: Warren Block , "Wojciech A. Koszek" , Miroslav Lachman <000.fbsd@quip.cz>, Chris Rees , 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 14:04:24 -0000 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 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 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 -- Eitan Adler