On 2012-04-27,
no.to...@gmail.com <
no.to...@gmail.com> wrote:
> You get the most effect by optimising the highest-determinant.
> Eg. your health is a very 'high' determinat of your life-quality.
> A high determinant of computer-useability MUST be the
> mnemonic value of the <prompt>.
> "localhost:/etc#" is VERY lame as a prompt.
> WTF is the value of the "localhost:" taking up space every time?
> Why don't package-builders optimise/fix this absurdity [for PC
> users, not networked users: the majority; or give a notification]?
>
Well, most of us do not give hostname "localhost" to our machines. And
many of us have more than one machine that we log onto, each with a
hostname. Thus my PS1 prompt is
PS1='\h:${PD}[\u]>'
to tell me not only which host I am logged onto but also what the
"Display" is, to tell me how deeply I am burried. (I tend to keep doing
ssh myownmachine
because myownmachine is what I so often log into remotely that my
fingers automaticlaly do that. Then I have no idea how many loayers deep
I am. If I am onthe machine itself, the bottom layer is always 0, and I
know I have to keep hitting exit to get out of one of the layers of ssh
I am burried in.
Your milage may vary. PUt whatever you want into your PS1-- that is why
it is a user defined variable.
You really must have very little trouble in your life if the default PS1
is all you have to complain about.
> I went through this time-wasting-exercise some years ago,
> on RH & Slak family installations [we must resists tribalism],
> and this PC currently shows the console-prompt as:
><user>"@28"<pwd>
> which is great. I'm guessing that "@28" is the console
> number; but the <pwd> is really what you want to know.
>
> I can't fix this damned debian thing!
>
> OK, /root/.profile does it for THAT user.
> But where's the global setting?
> /etc/profile doesn't do it.
~/.bashrc is where I define it.
>
> PS I'm not just looking for a solution to my current little
> problem, but for a global tune-up of GNU/linux. And IMO
> apeing M$ with bouncing cartoons is the wrong way.
What has that to do with the value of PS1?
And what makes you thing that your wants and desires are universal?
>