From owner-freebsd-questions Sat Jun 5 20:54:58 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mobil.surnet.ru (mobil.surnet.ru [195.54.2.7]) by hub.freebsd.org (Postfix) with ESMTP id C09C3152C9 for ; Sat, 5 Jun 1999 20:54:47 -0700 (PDT) (envelope-from ilia@cgilh.chel.su) Received: (from uucgilh@localhost) by mobil.surnet.ru (8.9.1a/8.9.1) with UUCP id JAA12167; Sun, 6 Jun 1999 09:53:26 +0600 (UDT) Received: (from uucp@localhost) by cgilh.chel.su (8.8.7/8.8.7) with UUCP id JAA03472; Sun, 6 Jun 1999 09:23:44 +0600 Received: from localhost (ilia@localhost) by jane.cgu.chel.su (8.9.2/8.9.2) with ESMTP id IAA00398; Sun, 6 Jun 1999 08:59:34 +0600 (ESS) (envelope-from ilia@cgilh.chel.su) X-Authentication-Warning: jane.cgu.chel.su: ilia owned process doing -bs Date: Sun, 6 Jun 1999 08:59:33 +0600 (ESS) From: Ilia Chipitsine X-Sender: ilia@jane.cgu.chel.su To: Bart Trzynadlowski Cc: freebsd-questions@FreeBSD.ORG Subject: Re: prompt in csh and terminals In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 5 Jun 1999, Bart Trzynadlowski wrote: > Hi, > I have three simple questions. > > 1) How can I set the prompt in csh and sh so that it reflects the current > path... in zsh I got it working so it now looks like: > > /home/btrzynadlowski% csh. add the following alias to ~/.cshrc alias cd 'cd \!*;set prompt="`whoami`@`hostname`:`pwd`{\!}% "' sh. add the following alias to ~./shrc prompt=${USER}@$(hostname -s) cd() { command cd "$@" case $PWD in "${HOME}"*) PS1="${prompt}[~${PWD#"${HOME}"}] " ;; *) PS1="${prompt}[${PWD}] " ;; esac } cd $PWD # initialize prompt > > 2) Is there a way to add more console terminals? All I have is 3 right > now: ttyv0, ttyv1, ttyv2. Can I add 2 or more of these so I can have > ttyv3, ttyv4. > > 3) Where can I find out how to create snoop (SNP) devices to watch other > consoles? Couldn't find much in the man pages. > > Thanks a lot! > > Bart Trzynadlowski > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message