[Cialug] bash return values [was: enter passwords less]
Matthew Nuzum
newz at bearfruit.org
Mon Aug 27 09:00:18 CDT 2007
On 8/27/07, Chris Freeman <cwfreeman at gmail.com> wrote:
> > > # Prompt with the last exit vale, the word 'HOME', and the current
> working
> > > directory.
> > Why the word 'HOME'?
> Because I've got accounts on so many systems. It's not the most obvious
> name, but it's what I was using on the machine I was typing on, so it got
> into the example.
When I was a Windows user, I used putty, and I still miss it somewhat.
One thing I did was assign a background color to the terminal window
to distinguish different types of systems... i.e. mailservers,
databases, etc. I usually prefer a black background but you can adjust
the color slightly towards magenta or blue and it looks black until
you compare it to another terminal that is black or one of the other
colors.
It gives a very obvious visual cue which can be very helpful.
I've tried doing it in Linux. Gnome-terminal allows you to create
different profiles, but I've not figured out how to set a profile
preference in the ~/.ssh/config file. Or, for that matter, a way to
change the gnome-terminal profile from the shell.
--
Matthew Nuzum
newz2000 on freenode
More information about the Cialug
mailing list