\H in PS1 does not display fqdn
Joe McDonagh
joseph.e.mcdonagh at gmail.com
Sun Dec 26 02:19:01 UTC 2010
I've done the same thing, but because I manage a variety of different
operating systems I set fqdn with facter as a shell variable then use
that in PROMPT_COMMAND and PS1.
On 12/25/2010 07:03 PM, Brian McKee wrote:
> I've noticed that too - I added an export clause to /etc/profile to assign
> the fqdn to a variable and then stick that in my PS1.
>
> Brian
>
> On Sat, Dec 25, 2010 at 1:30 AM, Joe McDonagh
> <joseph.e.mcdonagh at gmail.com>wrote:
>
>> \H is supposed to show the FQDN in bash's PS1, however it shows the
>> short hostname. Works perfectly fine in OBSD and RHEL. Any ideas why
>> Ubuntu would be different?
>>
>>
>> --
>> Joe McDonagh
>> AIM: YoosingYoonickz
>> IRC: joe-mac on freenode
>> L'ennui est contre-révolutionnaire
>>
>>
>> --
>> ubuntu-server mailing list
>> ubuntu-server at lists.ubuntu.com
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
>> More info: https://wiki.ubuntu.com/ServerTeam
>>
>
>
>
--
Joe McDonagh
AIM: YoosingYoonickz
IRC: joe-mac on freenode
L'ennui est contre-révolutionnaire
More information about the ubuntu-server
mailing list