This is a discussion on Getting color in bash within the AIX Operating System forums, part of the Unix Operating Systems category; --> I've seen people logged onto Linux machines with bash and they have these cool color-coded directory listings. I recently ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I've seen people logged onto Linux machines with bash and they have these cool color-coded directory listings. I recently installed bash on several AIX 5.x machines. Is it possible to set things up so I can get color like that? Or is that something specific to Linux? I normally login via PuTTY from my workstation or by ssh'ing from other servers. I use the xterm terminal definition in the PuTTY setup. I've heard about xterm-color, but it doesn't seem to be available, either in PuTTY or in my AIX termcap definitions. Thanks, Steve |
| |||
| Steve Bassler wrote: > I've seen people logged onto Linux machines with bash and they have > these cool color-coded directory listings. I recently installed bash > on several AIX 5.x machines. Is it possible to set things up so I can > get color like that? Or is that something specific to Linux? > > I normally login via PuTTY from my workstation or by ssh'ing from other > servers. I use the xterm terminal definition in the PuTTY setup. I've > heard about xterm-color, but it doesn't seem to be available, either in > PuTTY or in my AIX termcap definitions. xterm has colour on my AIX 5.2 if you install the GNU ls in fileutils (coreutils?). "ls --color" does the trick and I guess the "cool" guys have an "alias ls="ls --color". That works thru PuTTY also (I just tried). |
| |||
| On Sat, 9 Oct 2004 22:44:43 +0000 (UTC), Simon Marchese <sjm_news@yahoo.co.uk> wrote: > Steve Bassler wrote: > >> I've seen people logged onto Linux machines with bash and they have >> these cool color-coded directory listings. I recently installed bash >> on several AIX 5.x machines. Is it possible to set things up so I can >> get color like that? Or is that something specific to Linux? >> I normally login via PuTTY from my workstation or by ssh'ing from >> other servers. I use the xterm terminal definition in the PuTTY >> setup. I've heard about xterm-color, but it doesn't seem to be >> available, either in PuTTY or in my AIX termcap definitions. > > xterm has colour on my AIX 5.2 if you install the GNU ls in fileutils > (coreutils?). "ls --color" does the trick and I guess the "cool" guys > have an "alias ls="ls --color". That works thru PuTTY also (I just > tried). So this is actually a feature of the GNU ls code, rather than Linux- or bash-specific (although I'm sure it's the default in Linux)? And presumably it would work with any other shell as well? Thanks, Steve |
| ||||
| In article <opsfmozdqcpjr4ab@falcon>, bassmstr.delete.this.to.reply@adelphia.net says... > On Sat, 9 Oct 2004 22:44:43 +0000 (UTC), Simon Marchese > <sjm_news@yahoo.co.uk> wrote: > > > Steve Bassler wrote: > > > >> I've seen people logged onto Linux machines with bash and they have > >> these cool color-coded directory listings. I recently installed bash > >> on several AIX 5.x machines. Is it possible to set things up so I can > >> get color like that? Or is that something specific to Linux? > >> I normally login via PuTTY from my workstation or by ssh'ing from > >> other servers. I use the xterm terminal definition in the PuTTY > >> setup. I've heard about xterm-color, but it doesn't seem to be > >> available, either in PuTTY or in my AIX termcap definitions. > > > > xterm has colour on my AIX 5.2 if you install the GNU ls in fileutils > > (coreutils?). "ls --color" does the trick and I guess the "cool" guys > > have an "alias ls="ls --color". That works thru PuTTY also (I just > > tried). > > So this is actually a feature of the GNU ls code, rather than Linux- or > bash-specific (although I'm sure it's the default in Linux)? And > presumably it would work with any other shell as well? > > Thanks, > Steve > It isn't OS or shell related, but the terminal type and utils your using. You could run the same color generating command in ksh and get color if your terminal type supports it. An example of a terminal that doesn't support it is a text only based LFT Console that isn't running CDE (or X-windows in general). Your stuck with that wonderful green color as it doesn't support anything else. At least that's the official IBM stance I got a long while back about it and I haven't had time to hack ***errr*** -scratch that- I mean look into it further. -Scott |