Mailing List Archive

aterm prompt
Hello, when using aterm, I do not get the same colored prompt that I
get in other terminals such as Eterm. I'm getting: "bash-2.05b$"
instead of the usual "me@hostname dir $"

Can someone tell me how to get this to display my normal prompt, and
does anyone know of any good guides for customizing your shell prompt?

--
Free image hosting at http://www.rickserver.com

--
gentoo-user@gentoo.org mailing list
Re: aterm prompt [ In reply to ]
On 2004-09-22 03:47:26 -0400, Rick Hennigan wrote:
> Hello, when using aterm, I do not get the same colored prompt that I
> get in other terminals such as Eterm. I'm getting: "bash-2.05b$"
> instead of the usual "me@hostname dir $"
>
> Can someone tell me how to get this to display my normal prompt, and
> does anyone know of any good guides for customizing your shell prompt?

aterm, by default, doesn't read your .bash_profile and .bashrc. You can
pass it the -ls option to aterm to make it a login shell.

For customizing your prompt, check out:

http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/

--
Daniel Westermann-Clark

--
gentoo-user@gentoo.org mailing list
Re: aterm prompt [ In reply to ]
Daniel Westermann-Clark wrote:
> aterm, by default, doesn't read your .bash_profile and .bashrc. You can
> pass it the -ls option to aterm to make it a login shell.

Right. bash reads both.

.bashrc is read everytime a new bash is launched.
.bash_profile is read everytime you call it with the "login" option
(usually done by login).

Usually, when bash refuses to load those, it means that the shell your
user have is not bash (probably sh).

--
gentoo-user@gentoo.org mailing list
Re: aterm prompt [ In reply to ]
> .bashrc is read everytime a new bash is launched.
> .bash_profile is read everytime you call it with the "login" option
> (usually done by login).

I've looked in /etc/skel/.bashrc, /etc/skel/.bash_profile, and
/etc/DIR_COLORS and it seems like I should be getting something other
than bash-2.05b# but I'm not. I'm using xfce4's xfterm4 as root, but
I've tried xterm too. I'd like to get the me@here and colors if I
can.

Can someone clue me in?

- Grant

--
gentoo-user@gentoo.org mailing list
Re: aterm prompt [ In reply to ]
On Wed, 22 Sep 2004 10:13:09 -0700, Grant <emailgrant@gmail.com> wrote:
> > .bashrc is read everytime a new bash is launched.
> > .bash_profile is read everytime you call it with the "login" option
> > (usually done by login).
>
> I've looked in /etc/skel/.bashrc, /etc/skel/.bash_profile, and
> /etc/DIR_COLORS and it seems like I should be getting something other
> than bash-2.05b# but I'm not. I'm using xfce4's xfterm4 as root, but
> I've tried xterm too. I'd like to get the me@here and colors if I
> can.
>
> Can someone clue me in?

I don't know about you, but I've never had a problem with bash and
aterm... Try doing an echo $TERM It should come back either xterm or
rxvt. If it dosen't then you're probably in vt100 mode (or some other
mode that dosen't support color) and you should set 'export TERM=rxvt'
in your .bashrc.

Other than that, I don't use bash, so I can't be a lot of help.

--
-Jokr 2 Thief
Your speedbump on the information super highway.
----
"It dosen't matter how many times you type them... 'u, ur, r ne1 b and
y' are *NOT* real words." - Me

--
gentoo-user@gentoo.org mailing list
Re: aterm prompt [ In reply to ]
> I don't know about you, but I've never had a problem with bash and
> aterm... Try doing an echo $TERM It should come back either xterm or
> rxvt. If it dosen't then you're probably in vt100 mode (or some other
> mode that dosen't support color) and you should set 'export TERM=rxvt'
> in your .bashrc.
>
> Other than that, I don't use bash, so I can't be a lot of help.

I get xterm back from that command.

- Grant

--
gentoo-user@gentoo.org mailing list
Re: aterm prompt [ In reply to ]
On Wed, 22 Sep 2004, Grant wrote:

>> I don't know about you, but I've never had a problem with bash and
>> aterm... Try doing an echo $TERM It should come back either xterm or
>> rxvt. If it dosen't then you're probably in vt100 mode (or some other
>> mode that dosen't support color) and you should set 'export TERM=rxvt'
>> in your .bashrc.
>>
>> Other than that, I don't use bash, so I can't be a lot of help.
>
> I get xterm back from that command.
>

You set that var using the -tn flag to aterm.

Ric


--
gentoo-user@gentoo.org mailing list