From owner-freebsd-questions Wed Jan 2 11:10: 9 2002 Delivered-To: freebsd-questions@freebsd.org Received: from snipe.prod.itd.earthlink.net (snipe.mail.pas.earthlink.net [207.217.120.62]) by hub.freebsd.org (Postfix) with ESMTP id A7DF137B416 for ; Wed, 2 Jan 2002 11:10:06 -0800 (PST) Received: from sdn-ar-003dcwashp259.dialsprint.net ([206.133.15.149] helo=moo.holy.cow) by snipe.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16Lqm5-0005WQ-00 for freebsd-questions@freebsd.org; Wed, 02 Jan 2002 11:10:06 -0800 Received: by moo.holy.cow (Postfix, from userid 1001) id EF6F050D8D; Wed, 2 Jan 2002 14:12:01 -0500 (EST) Date: Wed, 2 Jan 2002 14:12:01 -0500 From: parv To: freebsd-questions@freebsd.org Subject: Re: Shell prompt contest Message-ID: <20020102191201.GA48648@moo.holy.cow> Mail-Followup-To: freebsd-questions@freebsd.org References: <20020102150618.04ae22ff.johann@broadpark.no> <20020102170833.C49613@ns2.wananchi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020102170833.C49613@ns2.wananchi.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG from my .bashrc... tty=`tty` tty=${tty##*/tty} partial_ps1="\u_${tty}" PS1="*- $partial_ps1 \W \! " export PS1 if [ ${TERM:0:5} == "xterm" -o ${TERM:0:4} == "rxvt" ]; then TERM=xterm-color export TERM PS1="\n__ $partial_ps1 (\d \@) j_\j \w\n^^ \! " export PS1 PROMPT_COMMAND='echo -ne "\E]0;${USER} (${tty}) ${PWD}\a"' fi ...and from .kshrc... tty=`tty` tty=${tty##*/tty} partial_ps1="${LOGNAME}_${tty}" PS1="*- $partial_ps1 "'${PWD##*/:-/} ! ' export PS1 if [ ${TERM:0:5} = "xterm" -o ${TERM:0:4} == "rxvt" ]; then TERM=xterm-color export TERM PS1=" __ $partial_ps1 "'${PWD}'" ^^ ! " export PS1 print -n "\\033]2;${USER} -${tty}-\\007" fi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message