[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [OT] Bash-Prompt



Hallo Alex!
On Fri, Jun 15, 2001 at 02:06:25PM +0200, Alex Zeimet wrote:
> In der /root/.bashrc hab ich folgendes stehen:
> 
> export PS1="\[\033[31m\]\u@\h [`tty | cut -c9-10`]:\w\[\033[39m\] # "
> 
> der prompt für root wird dabei root eingefärbt, mit jeweiliger
> Angabe des terminals.
> 
> In der /etc/profile steht:
> 
> PS1="\[\033[32m\]\u@\h [`tty | cut -c9-10`]:\w\[\033[39m\] $ "
> export Path PS1
> 
> Dabei wird der prompt für alle Benutzer grün eingefärbt.

Hab ich gleich mal ausprobiert. Der Prompt wird auch rot bzw. grün,
aber anstelle der Terminalangabe steht da nun:
['tty | cut -c9-10']
Sieht auch ganz nett aus, 'ne Termianlangabe wäre mir aber lieber. ;-)
War da irgendein Tippfehler drin?
-- 
MfG,				 |------------------------------------|
Karsten Jaeger			 | GnuPG-key: 16BD2CC2                |
With greetings from Appeldorn	 | Get it? Mail to: kaasja@kaasja.org |
Use Debian GNU/Linux, be happy!	 |------------------------------------|

Attachment: pgpuhc6Mo5dR0.pgp
Description: PGP signature


Reply to: