From owner-freebsd-current@FreeBSD.ORG Tue Feb 14 13:48:54 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 5AD57106566B for ; Tue, 14 Feb 2012 13:48:54 +0000 (UTC) (envelope-from astrodog@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 21AEA8FC17 for ; Tue, 14 Feb 2012 13:48:54 +0000 (UTC) Received: by obcwo16 with SMTP id wo16so10802676obc.13 for ; Tue, 14 Feb 2012 05:48:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=tsTBm79V3ikioTu7sNl05yqt3//x/IuWEXp/w/2tS24=; b=ibCSUW9F1uYJ1QttbEWJ+yXfQA7WployEdjo4qJZ/J720GOG+4tvcgPse2TvBZ58Z+ ZU5C47leJcs/c8jGYXqw8Wasyn8zrON9YFQLH2uC3y77sW/t5HGei6wJCf/3bvOwGkcC lVQ4w/tU5kJ/l6JBSxq2mOP2yNfeXe5KBQepU= MIME-Version: 1.0 Received: by 10.60.25.65 with SMTP id a1mr525303oeg.23.1329225583538; Tue, 14 Feb 2012 05:19:43 -0800 (PST) Received: by 10.182.91.131 with HTTP; Tue, 14 Feb 2012 05:19:43 -0800 (PST) In-Reply-To: References: <1328887627.38277.68.camel@buffy.york.ac.uk> Date: Tue, 14 Feb 2012 07:19:43 -0600 Message-ID: From: Astrodog To: Eitan Adler Content-Type: text/plain; charset=ISO-8859-1 Cc: Chris Rees , Colin Percival , freebsd-current Current , "Wojciech A. Koszek" 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: Tue, 14 Feb 2012 13:48:54 -0000 ... snip ... > if ($?prompt) then > # An interactive shell -- set some stuff up > - set prompt = "`/bin/hostname -s`# " > + set prompt = "[%n@%m]%c04%# " > + set promptchars = "%#" > > Many people had alternative suggestions for the prompt. Can you please > clarify why you believe your prompt should be the _default_ one? > While many admins are able to deal with short non-descriptive prompts > it helps new users to have more detail on the prompt line. I'd like to > commit some change to the default: currently it is very undescriptive. > I am leaving open which prompt I am going with at the end though. Personally, I pay very little attention to the prompt. That being said... Plenty of people prefer widely different configurations for the prompt. I think everyone agrees that the default prompt isn't particularly informative, however, achieving consensus here is going to be almost impossible. I suggest that it be handled as a seperate discussion, perhaps? > > set filec > - set history = 100 > - set savehist = 100 > + set history = 10000 > + set savehist = 10000 > > No one complained about this one - it is almost certainly going to > stay it the final version. > > + set autolist > > set autolist=ambiguous makes sense here - I will likely go with that. > > + # Use history to aid expansion > + set autoexpand > > No one complained about this - it is almost certainly going to stay > it the final version. > > Now to address some comments made in the thread. I'm sorry for not > preserving attribution here. > >> How about adding stuff like this to /usr/share/examples/tcsh/complete.tcsh ? >> Along with a comment in .cshrc pointing to that file (or even a commented line to source it), it would be an improvement. > > +1 I'll add a comment addressing this file. > >> I use the $HOME/bin on my machines but I am not so sure to make this a general thing. > > Many people expect it, and given that it is the last item in the path > it won't affect all that much. I am against this change, barring a more compelling reason to include it. Default behavior limits $PATH to areas that are only writable as root, and there is no garuntee that $HOME can only be written by the user. As a result, the change may create unanticipated and unnoticed security consequences some installations. I believe this outweighs the functionality provided by the proposed change, given how trivial this is to configure after the fact. ... snip ... These two issues aside, I do like the idea here. Here's hoping it doesn't collapse under thousands of coats of paint. --- Harrison