Date: Sun, 6 Jun 1999 08:59:33 +0600 (ESS) From: Ilia Chipitsine <ilia@cgilh.chel.su> To: Bart Trzynadlowski <btrzynadlowski@powernet.net> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: prompt in csh and terminals Message-ID: <Pine.BSF.4.05.9906060850390.380-100000@jane.cgu.chel.su> In-Reply-To: <Pine.BSF.4.05.9906051734020.197-100000@Brzuszek>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9906060850390.380-100000>
