Date: Thu, 6 Jan 2000 22:23:31 +0100 (CET) From: Oliver Fromme <olli@dorifer.heim3.tu-clausthal.de> To: freebsd-questions@FreeBSD.ORG Subject: Re: window manager question Message-ID: <200001062123.WAA30393@dorifer.heim3.tu-clausthal.de> In-Reply-To: <851eoa$2itp$1@atlantis.rz.tu-clausthal.de>
next in thread | previous in thread | raw e-mail | index | archive | help
R Joseph Wright <rjoseph@nwlink.com> 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: <login name> "@" <machine name> ":" <"..." if cwd has 4 or more components> <max. 3 components of simplified cwd> "> " 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001062123.WAA30393>