🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.linux.setup
Article #794

Re: Weird custom bash location setup.

#794
From: ceving
Date: Thu, 01 Dec 2011 18:25
8 lines
1744 bytes
On Nov 29, 3:23 pm, Ant <a...@zimage.comANT> wrote:
>
> PS1="\u@\h \[\e[33m\]\W\[\e[0m\] \[\`if [[ \$? = "0" ]]; then echo
> '\e[32m=)\e[0m'; else echo '\e[31m=(\e[0m' ; fi\`\] \$ "
> alias grep='grep --color'
>

BTW: Why is it necessary to quote numbers: "0"?
Technical Details
Message-ID: <3ab8cb84-7df6-4728-a236-47d504cb7e21@c18g2000yqj.googlegroups.com>
Path: arc1-ca.pugleaf.net!y3ni19616bkw.0!nntp.google.com!news2.google.com!postnews.google.com!c18g2000yqj.googlegroups.com!not-for-mail
References: <xIKdnYIb65hJd0nTnZ2dnUVZ_r2dnZ2d@earthlink.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1054c0,d54bef2f321ceea4
X-Google-NewGroupId: yes
X-Google-Attributes: gid4d82dd0a1,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII
Received: by 10.204.136.195 with SMTP id s3mr857173bkt.5.1322764390031;
        Thu, 01 Dec 2011 10:33:10 -0800 (PST)
Path: arc1-ca.pugleaf.net!y3ni19616bkw.0!nntp.google.com!news2.google.com!postnews.google.com!c18g2000yqj.googlegroups.com!not-for-mail
From: ceving <ceving@gmail.com>
Newsgroups: comp.os.linux.setup,gnu.bash
Subject: Re: Weird custom bash location setup.
Date: Thu, 1 Dec 2011 10:25:29 -0800 (PST)
Organization: http://groups.google.com
Lines: 8
Message-ID: <3ab8cb84-7df6-4728-a236-47d504cb7e21@c18g2000yqj.googlegroups.com>
References: <xIKdnYIb65hJd0nTnZ2dnUVZ_r2dnZ2d@earthlink.com>
NNTP-Posting-Host: 2.206.71.163
Mime-Version: 1.0
X-Trace: posting.google.com 1322764389 7405 127.0.0.1 (1 Dec 2011 18:33:09 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 1 Dec 2011 18:33:09 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: c18g2000yqj.googlegroups.com; posting-host=2.206.71.163; posting-account=lpIdjwoAAACRkyYbzslDBEV0EPSPAHhN
User-Agent: G2/1.0
X-Google-Web-Client: true
X-Google-Header-Order: RUAELSCHNK
X-HTTP-UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.30 (KHTML,
 like Gecko) Chrome/12.0.742.91 Safari/534.30,gzip(gfe)
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable