Re: was wondering

From: Paul Morgan (paulswm_at_earthlink.net)
Date: 12/31/03

  • Next message: Paul Morgan: "Re: was wondering"
    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
    

  • Next message: Paul Morgan: "Re: was wondering"

    Relevant Pages

    • Re: OT: SCSI better than IDE?
      ... Programming without a hex editor is like watchmaking without a hammer. ...
      (Debian-User)
    • Re: Synching disk on logout -- switched to EXT3
      ... >> It's not in this case, I don't think Miquel read all the messages, ... Programming without a hex editor is like watchmaking without a hammer. ... To UNSUBSCRIBE, email to debian-user-request@lists.debian.org ...
      (Debian-User)
    • Re: Changing the name of my computer
      ... find that filename~ is the prior version of filename. ... Programming without a hex editor is like watchmaking without a hammer. ... To UNSUBSCRIBE, email to debian-user-request@lists.debian.org ...
      (Debian-User)
    • Re: [OT[UnOfficial Unsubscribe FAQ
      ... >> I'll shoot you. ... If they are unable to follow the simple instructions to unsubscribe, ... Programming without a hex editor is like watchmaking without a hammer. ...
      (Debian-User)
    • Re: dpkg and ownership of a file
      ... How can I do so using Debian ... Programming without a hex editor is like watchmaking without a hammer. ... To UNSUBSCRIBE, email to debian-user-request@lists.debian.org ...
      (Debian-User)