Re: was wondering
From: Paul Morgan (paulswm_at_earthlink.net)
Date: 12/31/03
- Previous message: Axel Burwitz: "libc6-dev depends from linux-kernel-headers ?"
- In reply to: Mario Vukelic: "Re: was wondering"
- Next in thread: Mario Vukelic: "Re: was wondering"
- Reply: Mario Vukelic: "Re: was wondering"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: debian-user@lists.debian.org Date: Wed, 31 Dec 2003 07:44:58 -0500
On Wed, 31 Dec 2003 00:23:39 +0100, Mario Vukelic wrote:
>
> if [ "$SHELL" = '/bin/bash' ] || [ "$SHELL" = '/bin/sh' ]
> then
> if [ "`id -u`" -eq 0 ]
> then
> PS1='\[\033[01;31m\]\u@\h: \[\033[01;34m\]\w \$
> \[\033[00m\]'
> else
> PS1='\[\033[01;32m\]\u@\h: \[\033[01;34m\]\w \$
> \[\033[00m\]'
> fi
> fi
Alternatively:
...
if [ "`id -u`" -eq 0 ]; then
if [ "$DIMWIT" == "Y" ]; then
PS1='\[\033[01;31m\]Do not type anything stupid.\[\033[01;34m\] # \[\033[00m\]'
else
PS1='\[\033[01;31m\]Yes, Master?\[\033[01;34m\] # \[\033[00m\]'
fi
else
PS1='\[\033[01;32m\]\u@\h: \[\033[01;34m\]\w $ \[\033[00m\]'
fi
-- ....................paul Programming without a hex editor is like watchmaking without a hammer. -- To UNSUBSCRIBE, email to debian-user-request@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
- Previous message: Axel Burwitz: "libc6-dev depends from linux-kernel-headers ?"
- In reply to: Mario Vukelic: "Re: was wondering"
- Next in thread: Mario Vukelic: "Re: was wondering"
- Reply: Mario Vukelic: "Re: was wondering"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|