Article View: comp.os.linux.setup
Article #792Weird custom bash location setup.
From: Ant
Date: Tue, 29 Nov 2011 14:23
Date: Tue, 29 Nov 2011 14:23
28 lines
2657 bytes
2657 bytes
Hello.
I am trying to figure out why my old .bashrc's current location doesn't
show correctly when in /home directory with:
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'
When I try it out in /home, I see "hmee":
foo@box ~ =) $ cd ..
foo@box hmee =) $ cd /home
foo@box =) $
Why is that? It worked on my 2004's updated Debian box and remote Linux
boxes (Fedora and Debian). I am using Bash v4.1-3 from 64-bit Debian's
stable installation with the latest updates including its backports.
Thank you in advance. :)
--
"What, like I had to live with all those ants? Do you know what I did to
those ants? HoooHooo! No more ants!" --unknown
/\___/\ Ant @ http://antfarm.ma.cx (Personal Web Site)
/ /\ /\ \ Ant's Quality Foraged Links: http://aqfl.net
| |o o| |
\ _ / If crediting, then use Ant nickname and AQFL URL/link.
( ) If e-mailing, then axe ANT from its address if needed.
Ant is currently not listening to any songs on this computer.
Technical Details
Message-ID:
<xIKdnYIb65hJd0nTnZ2dnUVZ_r2dnZ2d@earthlink.com>Path:
arc1-ca.pugleaf.net!lh20ni37660pbb.0!nntp.google.com!news1.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-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 4d82dd0a1,d54bef2f321ceea4,start
X-Google-Attributes: gid4d82dd0a1,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: ENGLISH,ASCII-7-bit
Received: by 10.68.35.68 with SMTP id f4mr31755585pbj.5.1322576688672;
Tue, 29 Nov 2011 06:24:48 -0800 (PST)
Path: arc1-ca.pugleaf.net!lh20ni37660pbb.0!nntp.google.com!news1.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: Tue, 29 Nov 2011 08:23:16 -0600
Date: Tue, 29 Nov 2011 06:23:15 -0800
From: Ant <ant@zimage.comANT>
Organization: An Ant Farm
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14
MIME-Version: 1.0
Newsgroups: comp.os.linux.setup,gnu.bash
Subject: Weird custom bash location setup.
Message-ID: <xIKdnYIb65hJd0nTnZ2dnUVZ_r2dnZ2d@earthlink.com>
Lines: 28
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 76.91.121.10
X-Trace: sv3-yd3uF3RoBNbkwWEKAtNsd9nV63R+dRLAJp570CLOQsjP213u6KKO5uu/rAhXzVHQSMTnfu7PW0o1/kY!WQfKQBnxFmJbwWFGsulMzTPZb8ACJFLma0DpL0OakPlQAh30gBh6gMeha9R965mOH9jinAPrmg3P!cGyXBB0/Kcn3tzQaEt4+2Y4DgdZDZg==
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: 2227
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit