[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-user
Subject:    Re: [gentoo-user] Highlight certain packages being upgraded
From:       Neil Bothwick <neil () digimed ! co ! uk>
Date:       2023-07-13 7:28:04
Message-ID: 20230713082804.2f36d175 () digimed ! co ! uk
[Download RAW message or body]


On Thu, 13 Jul 2023 02:16:13 -0500, Dale wrote:

> > Then run
> >
> > emerge --options @world -p --color y | sed -f packages.script
> >
> > It highlights any of the packages in your file in bright red. See
> > https://gist.github.com/fnky/458719343aabd01cfb17a3a4f7296797 for a
> > list of colour options.

> Like Wol's idea, that's a extra step.   I was wanting it to just do it
> when running emerge -auDN world with no additional steps except creating
> the file for the package list.  

That is the only extra step, unless you mean that you have to run with -p
to see the highlighted output. That takes a lot less time than you have
invested in this so far.

Actually, I've checked and you can run this with --ask instead or -p, so
no extra steps involved. The only limitation is that you don't see the
Y/n prompt at the end of the ask output. Create an alias to the command,
or wrap it in a script that also runs the sed command first and the
number of extra steps becomes exactly zero.


-- 
Neil Bothwick

The considered application of terror is also a form of communication.

[Attachment #3 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic