On Mon, Aug 31, 2009 at 3:46 AM, <[email protected]> wrote:
> [ pkg-discuss moved to the Bcc as this clearly isn't pkg(5) related ]
>
>> #
>> # Define default prompt to <username>@<hostname>:<path><"($|#) ">
>> # and print '#' for user "root" and '$' for normal users.
>> #
>> PS1='${logna...@$(/usr/bin/hostname):$(
>>   [[ "${LOGNAME}" == "root" ]] && printf "%s" "${PWD/${HOME}/~}# " ||
>>   printf "%s" "${PWD/${HOME}/~}\$ ")'
>>
>>
>> Is there any reason why it cannot be just
>>
>> PS1="\...@\h:\w\$ "
>
> It's for compatibility with other shells such as ksh93
>

I would think so if that would be in .profile, however .bashrc
strongly hints that the intended consumer is bash.


-- 
Regards,
        Cyril
_______________________________________________
indiana-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss

Reply via email to