From owner-freebsd-hackers Tue Apr 16 10:23:16 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id KAA25981 for hackers-outgoing; Tue, 16 Apr 1996 10:23:16 -0700 (PDT) Received: from iway.chartway.com (iway.chartway.com [199.3.227.2]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id KAA25975 for ; Tue, 16 Apr 1996 10:23:12 -0700 (PDT) Received: (from markb@localhost) by iway.chartway.com (8.6.12/8.6.9) id NAA00426; Tue, 16 Apr 1996 13:24:12 -0400 Date: Tue, 16 Apr 1996 13:24:12 -0400 (EDT) From: Mark Bernard To: Ollivier Robert cc: Raymond Richmond , hackers@FreeBSD.ORG Subject: Re: Configuration In-Reply-To: <199604160622.IAA07083@keltia.freenix.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk How can I use tcsh as the main shell so its not invoked over csh? Is there a sample .tcshrc file I could see? Thanks for your help! On Tue, 16 Apr 1996, Ollivier Robert wrote: > It seems that Raymond Richmond said: > > I use this little hack in my .cshrc to give me easily modified prompts. > > This one give you a machine name as well as present directory referenced > > from users home directory. > > Use a Real Men Shell[tm] like tcsh. You don't need to alias cd/pushd/popd > anymore... > > > if ($?prompt) then > > # An interactive shell -- set some stuff up > > set mch = `hostname -s` > > alias prompt 'set noglob;\\ > > set prompt = `dirs`;\\ > > set prompt = "${mch}:{!}:${prompt[1]}>";\\ > > unset noglob' > > alias popd 'popd \!*; prompt' > > alias pushd 'pushd \!*; prompt' > > All of these would be > > set prompt="%m:%h:%~%# " > > Every cd/pushd/popd will now work as expected, changing the prompt > automatically and so on. > -- > Ollivier ROBERT -=- The daemon is FREE! -=- roberto@keltia.freenix.fr > FreeBSD keltia.freenix.fr 2.2-CURRENT #12: Sun Apr 14 16:01:04 MET DST 1996 >