Re: Terminal prompt



Vincente Aggrippino wrote:


On 5/1/07, *Tom Vawter* <tvawter@xxxxxxxxxxxx
<mailto:tvawter@xxxxxxxxxxxx>> wrote:

I need help with my terminal prompt.

After having attempted to mount my macosx partition, my terminal
prompt
changed to "tvawter@tvawter-pb4:~$". The "@tvawter-pb4" was
added. I
would like to get rid of this. I have looked in /etc/profile,
~/.bash
and /etc/bash.bashrc, but I am unclear on what to change. I am also
unclear on why my prompt changed at all.


Look for something that sets the variable named PS1 and, possibly,
PROMPT_COMMAND. The definition and use of these variables can be
found in the man page for your shell (probably bash). If you find the
variable, you might not even need to look at the man page. It might
be obvious what is generating the "@tvawter-pb4" part.

This is probably, "@\h". that's what it is on mine. It doesn't seem
likely that this happened as a result of mounting a drive, though.

-- Vince

Thanks
Tom Vawter

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx <mailto:ubuntu-users@xxxxxxxxxxxxxxxx>
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


Thanks, Vincente. Deleting "@\h" in PS1 in ~/.bashrc did the trick.

Tom

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: Terminal prompt
    ... After having attempted to mount my macosx partition, my terminal prompt ... would like to get rid of this. ... but I am unclear on what to change. ...
    (Ubuntu)
  • Re: Term::Prompt broken? Or am I misreading documentation?
    ... > I'm pretty sure that the above is not a correct call of the 'prompt' ... Though why it behaves the way it does is unclear. ... Daniel Drucker ...
    (comp.lang.perl.misc)
  • Terminal prompt
    ... After having attempted to mount my macosx partition, my terminal prompt ... would like to get rid of this. ... but I am unclear on what to change. ...
    (Ubuntu)