From owner-freebsd-questions Thu Jan 6 13:23:43 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dorifer.heim3.tu-clausthal.de (dorifer.heim3.tu-clausthal.de [139.174.243.252]) by hub.freebsd.org (Postfix) with ESMTP id 2B93414FAD for ; Thu, 6 Jan 2000 13:23:37 -0800 (PST) (envelope-from olli@dorifer.heim3.tu-clausthal.de) Received: (from olli@localhost) by dorifer.heim3.tu-clausthal.de (8.9.3/8.9.3) id WAA30393; Thu, 6 Jan 2000 22:23:31 +0100 (CET) (envelope-from olli) Date: Thu, 6 Jan 2000 22:23:31 +0100 (CET) Message-Id: <200001062123.WAA30393@dorifer.heim3.tu-clausthal.de> From: Oliver Fromme To: freebsd-questions@FreeBSD.ORG Subject: Re: window manager question X-Newsgroups: list.freebsd-questions In-Reply-To: <851eoa$2itp$1@atlantis.rz.tu-clausthal.de> User-Agent: tin/1.4.1-19991201 ("Polish") (UNIX) (FreeBSD/3.4-19991219-STABLE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG R Joseph Wright wrote in list.freebsd-questions: > Oliver Fromme wrote: > >> Hmm, no idea. I'm not a bash expert. Maybe it's a bug. >> As a workaround, you can just write "#" in the first "PS1" >> line, of course. > > No, because that has another meaning. It causes the prompt to show the > history number of the command you've typed in. Uhm, well, that's a bash-specific problem, can't help you there, I'm afraid. Zsh's prompt-syntax is very easy and consistent. All "specials" begin with a "%" sign, and "%%" will give a literal percent sign, that's all. For example, "%#" is replaced with a "#" if the shell is running as root, and with a "%" if not. My normal user $PROMPT is: %n@%m:%4(~:...:)%3c> which means: "@" ":" <"..." if cwd has 4 or more components> "> " For example: olli@dorifer:~> cd /rootfs/usr/src olli@dorifer:/rootfs/usr/src> cd sys/i386/conf olli@dorifer:...sys/i386/conf> HERE=`pwd` olli@dorifer:~HERE> cd conf olli@dorifer:~HERE/conf> When I'm root, it prints "root" in bold as login name, and a bold "#" instead of the normal ">". Just to give some ideas. :) Regards Oliver -- Oliver Fromme, Leibnizstr. 18/61, 38678 Clausthal, Germany (Info: finger userinfo:olli@dorifer.heim3.tu-clausthal.de) "In jedem Stück Kohle wartet ein Diamant auf seine Geburt" (Terry Pratchett) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message