[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Coloured CLI [was: Re: 7z command works fine on command line but not in script]



On Thu, Feb 20, 2014 at 12:15:56PM +1100, Scott Ferguson wrote:
> On 19/02/14 23:32, berenger.morel@neutralite.org wrote:
> > 
> > 
> > Le 19.02.2014 10:53, Scott Ferguson a écrit :
> >> Just read your last post before sending this, so this may no longer be
> >> relevant... I don't know that you need to quote the variables. I use
> >> coloured bash
> 
> coloured *editor* i.e. nano, vi/emac, dex[*1] or Kwrite is what I meant
> to write. If anyone knows of a way to colourise the syntax in xterm
> (especially 'fc' temp) I'd be *very* interested.

Does it have to be bash?

If you're willing to give zsh a try (It's another bourne-derivative, so
the syntax is very similar. I believe it's mostly POSIX compliant, too),
then add-ons such as oh-my-zsh[1] or zprezto[2] have syntax-highlighting
modules. (I found oh-my-zsh to be a good window to the power of zsh, but
zprezto seems to be generally better).

[1] https://github.com/robbyrussell/oh-my-zsh
[2] https://github.com/sorin-ionescu/prezto

Attachment: signature.asc
Description: Digital signature


Reply to: