Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Have portage lost its memory?
Date: Sun, 26 Mar 2006 04:17:40
Message-Id: 20060326041304.GA14164@waltdnes.org
In Reply to: Re: [gentoo-user] Have portage lost its memory? by Toby 'qubit' Cubitt
1 On Thu, Mar 23, 2006 at 02:36:18PM +0100, Toby 'qubit' Cubitt wrote
2
3 > I used to give the shell prompts different colours on different
4 > machines to help avoid this. Or rather, the local one would always be
5 > the same colour, but shells under ssh sessions were colour-coded by
6 > machine.
7 >
8 > I've lost the script I wrote for this somewhere in the mists of time
9 > (if I remember right, it was copied and hacked from a bash prompt
10 > example that colour-coded according to the login type: ssh, telnet,
11 > local, etc.)
12 >
13 > Someday I might get round to recreating it...
14
15 As a basic reminder of which machine I'm on, I set the following...
16 export PS1='[\h][\u][\w]'
17
18 On my main machine, an AMDK8 3000+, hostname is "m3000", so the prompt
19 comes out as...
20 [m3000][waltdnes][~]
21
22 My old, emergency backup, semi-retired 1999 Dell PIII 450 mhz machine
23 is named "m450", so its prompt comes out as...
24 [m450][waltdnes][~]
25
26 For a somewhat more colourful prompt, I now use...
27 export PS1='[\[\033[01;32m\]\h\[\033[00m\]][\[\033[01;34m\]\u\[\033[00m\]][\[\033[01;36m\]\w\[\033[00m\]] '
28
29 --
30 Walter Dnes <waltdnes@××××××××.org> In linux /sbin/init is Job #1
31 My musings on technology and security at http://tech_sec.blog.ca
32 --
33 gentoo-user@g.o mailing list