🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Weird custom bash location setup.

#795
From: Ant
Date: Thu, 01 Dec 2011 23:02
18 lines
2367 bytes
In comp.os.linux.setup ceving <ceving@gmail.com> wrote:
> 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"?

I don't know. I got this bash customization from /. many years ago. :)
-- 
Quote of the Week: "Stir up an ant's nest." --unknown
  /\___/\         Ant @ http://antfarm.home.dhs.org (Personal Web Site)
 / /\ /\ \                 Ant's Quality Foraged Links: http://aqfl.net
| |o   o| |
   \ _ /           Please nuke ANT if replying by e-mail. If crediting,
    ( )          then please kindly use Ant nickname and AQFL URL/link.
Technical Details
Message-ID: <opedneKWkbgLmkXTnZ2dnUVZ_sednZ2d@earthlink.com>
Path: arc1-ca.pugleaf.net!lh20ni54250pbb.0!nntp.google.com!news2.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
References: <xIKdnYIb65hJd0nTnZ2dnUVZ_r2dnZ2d@earthlink.com> <3ab8cb84-7df6-4728-a236-47d504cb7e21@c18g2000yqj.googlegroups.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.68.35.68 with SMTP id f4mr5342699pbj.5.1322780567414;
        Thu, 01 Dec 2011 15:02:47 -0800 (PST)
Path: arc1-ca.pugleaf.net!lh20ni54250pbb.0!nntp.google.com!news2.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 01 Dec 2011 17:02:46 -0600
From: ANTant@zimage.com (Ant)
Subject: Re: Weird custom bash location setup.
Newsgroups: comp.os.linux.setup,gnu.bash
References: <xIKdnYIb65hJd0nTnZ2dnUVZ_r2dnZ2d@earthlink.com> <3ab8cb84-7df6-4728-a236-47d504cb7e21@c18g2000yqj.googlegroups.com>
User-Agent: tin/2.0.0-20110823 ("Ardenistiel") (UNIX) (Linux/3.1.0-7.fc16.x86_64 (x86_64))
MIME-Version: 1.0
Message-ID: <opedneKWkbgLmkXTnZ2dnUVZ_sednZ2d@earthlink.com>
Date: Thu, 01 Dec 2011 17:02:46 -0600
Lines: 18
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 71.103.224.66
X-Trace: sv3-lxkKJ4Lro9rKcREMRmxN1bD2TzWqacJ4A7ywTFlEaC8roQOA37hJ+16koMXNdgTtk4ZgZrfEWmmDcaa!FyUdzOITFrgeMP2/MT9nSlT7JreDpGPeFd10YZjZSlql6987fhpil42MoMU4hfFn6yliF0z1+0dC!s5v5KtcAaTGdhzuzoAlhh7iB2/hv7Pw=
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 1941
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit