Ted,
Link to ANSI trickery:
http://tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html
Rob.
On 25/02/07, Ted Harding ted.harding@nessie.mcc.ac.uk wrote:
On 25-Feb-07 Eur Ing Chris Green wrote:
[...] As I said I don't generally see the point of sudo for command line use, just become root and do what you need to do, with a prompt that flags you that you are root you shouldn't forget. (It's maybe a heritage of having to do it this way in the past so I am very wary when I am root)
Indeed! And so say all of us (over a certain age ... )!
Today I was trying the live CD of PCLinixOS -- see:
and in this respect it had a neat little feature:
As well as the usual "#" prompt (which we oldies are hypersensitive to anyway), the whole root prompt line is shown in BRIGHT RED on the screen!
No doubt there's a bit of ANSI trickery behind it (I didn't follow it up at the time), but it should be simple enoigh to implement for anyone who feels paranoid about their absentmindedness.
Best wishes to all, Ted.
E-Mail: (Ted Harding) ted.harding@nessie.mcc.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 25-Feb-07 Time: 22:22:30 ------------------------------ XFMail ------------------------------
main@lists.alug.org.uk http://www.alug.org.uk/ http://lists.alug.org.uk/mailman/listinfo/main Unsubscribe? See message headers or the web site above!