From owner-freebsd-questions@FreeBSD.ORG Mon Jun 14 16:15:32 2010 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1E43F1065676 for ; Mon, 14 Jun 2010 16:15:32 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id D4C118FC14 for ; Mon, 14 Jun 2010 16:15:31 +0000 (UTC) Received: from r55.edvax.de (port-92-195-117-232.dynamic.qsc.de [92.195.117.232]) by mx02.qsc.de (Postfix) with ESMTP id 33DD71E7A9; Mon, 14 Jun 2010 18:15:30 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id o5EGFTUE001525; Mon, 14 Jun 2010 18:15:29 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Mon, 14 Jun 2010 18:15:29 +0200 From: Polytropon To: Aiza Message-Id: <20100614181529.8fc1dd2f.freebsd@edvax.de> In-Reply-To: <4C160338.6000304@comclark.com> References: <4C160338.6000304@comclark.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "questions@freebsd.org" Subject: Re: .cshrc usage X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jun 2010 16:15:32 -0000 On Mon, 14 Jun 2010 18:23:52 +0800, Aiza wrote: > I want to change the console prompt for all users that get accounts > created. I added it to /etc/csh.cshrc which says it a system-wide .cshrc > file. But after adding a new user with pw command with -m and logging in > as the user name the prompt is still the old way. Do I have to add it to > /usr/share/skel/dot.cshrc to get the change to take effect? Check the users' ~/.cshrc to see if they override those settings. I also have some standard settings for all users in /etc/csh.cshrc, and users' ~/.cshrc are usually empty (unless they add their own settings or override mine). if ($?prompt) then set promptchars = "%#" set prompt = "%n@%m:%~%# " set autolist # ... more stuff here ... endif This is an example on how to properly implement the standard prompt (username, hostname, current directory with home substitution, and permission indicator). The /usr/share/skel directory contains files that are copied to a user's directory when an account is created. This means: See what's in those files. If they override your global settings, change them. If an account has already been created, check the user's files. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...