Re: Tools to better colorize the command-line experience?

2021-02-21 Thread Jonas Smedegaard
Quoting Otto Kekäläinen (2021-02-21 10:44:02)
> On Fri, 8 Jan 2021 at 04:01, Seth Arnold  wrote:
> >
> > On Thu, Jan 07, 2021 at 11:02:24PM +0200, Otto Kekäläinen wrote:
> > > Do you have any tips about generic command-line coloring programs?
> >
> > The bat package provides a batcat program that'll add colour to a lot of
> > different file formats. There's some screenshots on the github page:
> > https://github.com/sharkdp/bat
> 
> Thanks, bat is great. It has now become my standard replacement for 'cat'.
> 
> I recently also switched to fzf[1] for my 'cd' and Ctrl+R use.

Just now, looking into fzf thanks to your mentioning it above, I 
stumbled upon fzy claiming to be a better replacement.

I have no experience with either yet myself, just mentioning here as my 
tiny contribution to this thread... :-)


> Thanks to this Debian-devel list I've learnt about both Liquid Prompt 
> and the fuzzy-finder for the bash prompt, which both are very useful 
> and solid (and not overly complex or incompatible like all those zsh 
> extensions many Mac users rely on). I didn't expect that the 
> command-line efficiency can still increase this much in 2021 and I am 
> a bit surprised the standard tools shipped in all Linux distros are 
> still the same as in the past 30 years or so. There is a lot of 
> productivity improvements people are missing out with the standard 
> tools..

I personally appreciate a conservative default: I use Midnight Commander 
which rely on the prompt not being too fancy - and I guess other tools 
(and folks) might freak out on having e.g. non-ASCII characters embedded 
in the prompt as well.

One area I think could use some improvement, however, is the use of 
/etc/profile.d: Would make sense that more Debian packages providing 
shell profile hooks offer a debconf choice of enabling them system-wide 
- just make sure that the _default_ choice is kept conservative.


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

signature.asc
Description: signature


Re: Tools to better colorize the command-line experience?

2021-02-21 Thread Otto Kekäläinen
On Fri, 8 Jan 2021 at 04:01, Seth Arnold  wrote:
>
> On Thu, Jan 07, 2021 at 11:02:24PM +0200, Otto Kekäläinen wrote:
> > Do you have any tips about generic command-line coloring programs?
>
> The bat package provides a batcat program that'll add colour to a lot of
> different file formats. There's some screenshots on the github page:
> https://github.com/sharkdp/bat

Thanks, bat is great. It has now become my standard replacement for 'cat'.

I recently also switched to fzf[1] for my 'cd' and Ctrl+R use.

Thanks to this Debian-devel list I've learnt about both Liquid Prompt
and the fuzzy-finder for the bash prompt, which both are very useful
and solid (and not overly complex or incompatible like all those zsh
extensions many Mac users rely on). I didn't expect that the
command-line efficiency can still increase this much in 2021 and I am
a bit surprised the standard tools shipped in all Linux distros are
still the same as in the past 30 years or so. There is a lot of
productivity improvements people are missing out with the standard
tools..

[1] https://linuxnatives.net/2021/save-time-command-line-fuzzy-finder



Re: Tools to better colorize the command-line experience?

2021-01-07 Thread M. Zhou
Hi Otto,

I rely on such helper utilities. Here I can list some recommendations.

On Thu, 2021-01-07 at 23:02 +0200, Otto Kekäläinen wrote:
> Do you have any tips about generic command-line coloring programs?

1. [diff-highlight] highlighting .diff/.patch files

   located in package
   git: /usr/share/doc/git/contrib/diff-highlight
   (there was once a discussion about it on -devel)

2. [grc] generic colouriser for everything

   can colorize output of many commands such as
   ip, dig, ifconfig, findmnt, mount, ps, etc.

3. [python3-pygments] highlighting source code

4. for highlighting the shell command line itself, there are
   [fish] for out-of-the-box shell syntax highlighting, and
   an alternative [zsh-syntax-highlighting] for zsh. Doesn't
   know whether there is such thing for bash.



Re: Tools to better colorize the command-line experience?

2021-01-07 Thread Seth Arnold
On Thu, Jan 07, 2021 at 11:02:24PM +0200, Otto Kekäläinen wrote:
> Do you have any tips about generic command-line coloring programs?

The bat package provides a batcat program that'll add colour to a lot of
different file formats. There's some screenshots on the github page:
https://github.com/sharkdp/bat

It's heavily oriented towards programming languages but does support some
configuration files like /etc/hosts, /etc/ssh/sshd_config, etc.

Thanks


signature.asc
Description: PGP signature