From owner-freebsd-current@FreeBSD.ORG Fri Feb 10 00:53:30 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 F28EA106564A; Fri, 10 Feb 2012 00:53:29 +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 41C5B8FC08; Fri, 10 Feb 2012 00:53:28 +0000 (UTC) Received: by wibhn14 with SMTP id hn14so2419024wib.13 for ; Thu, 09 Feb 2012 16:53:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=mime-version:from:date:message-id:subject:to:cc:content-type; bh=3mSnWEbkQIQb6CuY5WRH8fouevjgLSrBfTz32KDiKqg=; b=mBaPpPuYSaBlMSNkoxq+Xn1/9F+EkXFQxSw+xMB8v5SjIH98/uHGhfI+ueK3DYsJdg V6bKvhtYwjLRqzPX6C63zCh54VDoy9TNypoKfY0TF/OsV8Ps7YIKIJ9iIlAAwqUOb26/ wgZIfnVZbota5PZj2d3hP8ollPXLNcDbGm3TY= Received: by 10.180.83.72 with SMTP id o8mr35802053wiy.22.1328835208209; Thu, 09 Feb 2012 16:53:28 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.103.10 with HTTP; Thu, 9 Feb 2012 16:52:58 -0800 (PST) From: Eitan Adler Date: Thu, 9 Feb 2012 19:52:58 -0500 Message-ID: To: freebsd-current Current Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQklS+qI5SUqxLBQvWJbXXTiGz3w7Nn0oiVUiTIvmQGxokcA/AEQCNg4IJluwdESQXnIN5xp Cc: Chris Rees , Colin Percival , "Wojciech A. Koszek" Subject: 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 00:53:30 -0000 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 -- Eitan Adler