Gentoo Archives: gentoo-user

From: Mark Knecht <markknecht@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] One machine's terminals don't say 'mark@flash' anymore
Date: Wed, 17 Aug 2005 22:40:22
Message-Id: 5bdc1c8b05081715327147eeef@mail.gmail.com
In Reply to: Re: [gentoo-user] One machine's terminals don't say 'mark@flash' anymore by Wade Brown
1 Wade,
2 Thanks for the response. I think this will help me get it straightened out.
3
4 So far I see no difference between the machines that work and the
5 laptop which doesn't when doing the grep -r PS1 /etc/* command.
6 However, when I echo $PS1 at the command line I do get different
7 results:
8
9 Laptop (fails)
10
11 flash ~ $ echo $PS1
12 \[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]
13 flash ~ $
14
15 Desktop (works)
16
17 mark@godzilla ~ $ echo $PS1
18 \[\033[01;32m\]\h \[\033[01;34m\]\w \$ \[\033[00m\]
19 mark@godzilla ~ $
20
21 Similar but not identical, and the issue right now is determining what
22 set these, and if indeed these differences even matter.
23
24 Thanks,
25 Mark
26 On 8/17/05, Wade Brown <wanderer.wcb@×××××.com> wrote:
27 > The environment variable $PS1 controls what your prompt is, assuming
28 > you're using bash. This can be set in many many places, such as
29 > ~/.bashrc, /etc/profile (controlled by something along the lines of
30 > /etc/env.d/##bash), or even as a simple export. Try searching through
31 > your /etc on your different machines for the PS1 setting, and copy it
32 > to the one that's missing, a good place to start is "grep -r PS1
33 > /etc/*"
34 >
35 > On 8/17/05, Mark Knecht <markknecht@×××××.com> wrote:
36 > > Hi,
37 > > On my laptop only when I open a gnome-terminal I'm no longer
38 > > greeted with a prompt that says: mark@flash ~ $ - it now it just says
39 > > flash ~ $.
40 > >
41 > > What controls this?
42 > >
43 > > I thought it was .bashrc but comparing my non-working laptop with
44 > > my 3 working desktop machines, which do say mark@machine, I see no
45 > > differences.
46 > >
47 > > Thanks in advance,
48 > > Mark
49
50 --
51 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] One machine's terminals don't say 'mark@flash' anymore Mark Knecht <markknecht@×××××.com>