Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No color coding on fresh install?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
L1NTHALO
n00b
n00b


Joined: 27 Aug 2024
Posts: 22

PostPosted: Mon Sep 23, 2024 4:37 pm    Post subject: No color coding on fresh install? Reply with quote

On all my other gentoo installs (and liveCD) my text was color coded. In nano comments were blue, use flags red and blue, macros red etc. On this new fresh install I don't have this feature.
I have no idea how it's called (im sure even color coding is wrong) and I don't know how to enable it/where to find it. I don't even know if it's a gentoo feature or a nano feature? The portage stuff in the tty is colored.

Any suggestions?
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1746
Location: Germany

PostPosted: Mon Sep 23, 2024 5:24 pm    Post subject: Reply with quote

Nano syntax highlighting can be found here: https://wiki.gentoo.org/wiki/Nano
Also there should be some files in /usr/share/nano/ which you can use and even more here: https://github.com/scopatz/nanorc

And with " my text was color coded." you maybe mean the terminal colors?
If so, see here ls and dircolors
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
L1NTHALO
n00b
n00b


Joined: 27 Aug 2024
Posts: 22

PostPosted: Tue Sep 24, 2024 12:39 pm    Post subject: Reply with quote

Thanks for the answer.
I found out why my syntax highlighting was turned off: I turned on the minimal USE Flag globally and it turns off syntax highlighting in nano.
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1972

PostPosted: Tue Sep 24, 2024 2:42 pm    Post subject: Reply with quote

I really wouldn't set minimal system-wide. Per-package at best.
Back to top
View user's profile Send private message
L1NTHALO
n00b
n00b


Joined: 27 Aug 2024
Posts: 22

PostPosted: Tue Sep 24, 2024 8:29 pm    Post subject: Reply with quote

Haven't had any problems besides the nano syntax highlighting. What are the arguments against turning it off globally?
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1972

PostPosted: Wed Sep 25, 2024 10:23 am    Post subject: Reply with quote

The effects really vary quite drastically across packages. It doesn't do the same thing consistently.

It's part of why we're trying to phase it out and stop doing "negative USE flags".
Back to top
View user's profile Send private message
mrbassie
l33t
l33t


Joined: 31 May 2013
Posts: 822
Location: Go past the sign for cope, right at the sign for seethe. If you see the target you've missed it.

PostPosted: Wed Sep 25, 2024 4:11 pm    Post subject: Reply with quote

Does that mean minimal will simply go away or what minimal does with whatever package will be replaced with one or several more descriptive flags?
_________________
I spent a christmas in Vienna twenty something years ago. It was a beautiful city. Everyone was so friendly.
Back to top
View user's profile Send private message
Slippery Jim
Apprentice
Apprentice


Joined: 08 Jan 2005
Posts: 281

PostPosted: Tue Oct 08, 2024 1:44 am    Post subject: Reply with quote

mrbassie wrote:
Does that mean minimal will simply go away or what minimal does with whatever package will be replaced with one or several more descriptive flags?


Yeah, I think that's the right thing to do. Whatever minimal turned off should be replaced by use flags to turn those features on instead. I believe that's what sam_ was referring to when he said we should stop using "negative USE flags".

I personally like to add USE="-*" to my make.conf to turn off ALL the USE flags for my system. I do that and explicitly turn on what I want or what each package complains that it needs. I find it useful for testing ebuild dependencies.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum