Change Command Prompt

Hey guys,

Does anybody know how to change the prompt in the terminal window?

Currently mine is listed as:
$cavan@CDWZEAKE02K3-EKWOKKEOXLELG >

I would like to remove those random characters. I tried changing the $HOSTNAME variable but that doesn’t do it.
I then tried to modify the .bashrc file in ~ by exporting a custom PS1 variable. but for some reason the /h in my PS1 only recognizes the random string of characters as my host. How can I change this?

This isn’t really a problem, it just looks like crap and takes up line space when working with long commands.

Thanks!

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thank-you for the detailed description. That random string of
characters is probably the hostname being given to your machine by DHCP.

Yast: Network Devices: Network Card. Go modify one of your NICs and
notice that you can set the host name in there.

Good luck.

Ninja1980 wrote:
> Hey guys,
>
> Does anybody know how to change the prompt in the terminal window?
>
> Currently mine is listed as:
> $cavan@CDWZEAKE02K3-EKWOKKEOXLELG >
>
> I would like to remove those random characters. I tried changing the
> $HOSTNAME variable but that doesn’t do it.
> I then tried to modify the .bashrc file in ~ by exporting a custom PS1
> variable. but for some reason the /h in my PS1 only recognizes the
> random string of characters as my host. How can I change this?
>
> This isn’t really a problem, it just looks like crap and takes up line
> space when working with long commands.
>
> Thanks!
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJjHNc3s42bA80+9kRAqCjAJsF5dtxosvbjOm1KO29ceHmVm4tlQCdEMC8
T+XY1Gl8QgsRR5S2BCSb93w=
=WXcQ
-----END PGP SIGNATURE-----

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Oh, and also, uncheck the checkbox that says to update your hostname via
DHCP once you have it set to something you want to keep.

You can also verify this string of jibberish is your hostname by typing,
of all things:

hostname

Good luck.

ab@novell.com wrote:
> Thank-you for the detailed description. That random string of
> characters is probably the hostname being given to your machine by DHCP.
>
> Yast: Network Devices: Network Card. Go modify one of your NICs and
> notice that you can set the host name in there.
>
> Good luck.
>
>
>
>
>
> Ninja1980 wrote:
>> Hey guys,
>
>> Does anybody know how to change the prompt in the terminal window?
>
>> Currently mine is listed as:
>> $cavan@CDWZEAKE02K3-EKWOKKEOXLELG >
>
>> I would like to remove those random characters. I tried changing the
>> $HOSTNAME variable but that doesn’t do it.
>> I then tried to modify the .bashrc file in ~ by exporting a custom PS1
>> variable. but for some reason the /h in my PS1 only recognizes the
>> random string of characters as my host. How can I change this?
>
>> This isn’t really a problem, it just looks like crap and takes up line
>> space when working with long commands.
>
>> Thanks!
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJjHN/3s42bA80+9kRAk+FAJ9vhXa8GtdWFQkDK44OiJRA+hmiAQCgiv7a
T0ysO5iNK29nyo4kHxGL3Z0=
=QDjW
-----END PGP SIGNATURE-----

Yeah it was the ISP writing the hostname. Unchecked that box, and now I’m all set.

Thanks.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Good to hear! Thanks for posting back.

Good luck.

Ninja1980 wrote:
> Yeah it was the ISP writing the hostname. Unchecked that box, and now
> I’m all set.
>
> Thanks.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJjL+U3s42bA80+9kRAjyZAJ4+JEVnoH9GZlgK6ohlW0KOyczO7gCfY2XZ
yuw2ge0dw+Zb/6nOnW7CLwM=
=fsPC
-----END PGP SIGNATURE-----