Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
tab listing does not colorize as ls
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
_______0
Guru
Guru


Joined: 15 Oct 2012
Posts: 521

PostPosted: Sat Dec 29, 2012 1:14 pm    Post subject: tab listing does not colorize as ls Reply with quote

hi,

when pressing tab twice to list contents of a dir results are not colorized like ls. How to have colorized results with pressing tab twice?

thanks
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 8591

PostPosted: Sat Dec 29, 2012 5:20 pm    Post subject: Reply with quote

Tab completion output is managed by your shell. What shell are you using?
Back to top
View user's profile Send private message
_______0
Guru
Guru


Joined: 15 Oct 2012
Posts: 521

PostPosted: Sun Dec 30, 2012 1:28 pm    Post subject: Reply with quote

Hu wrote:
Tab completion output is managed by your shell. What shell are you using?


zsh and bash, none colorize tabbed listing.
Back to top
View user's profile Send private message
mv
Advocate
Advocate


Joined: 20 Apr 2005
Posts: 3782

PostPosted: Mon Dec 31, 2012 1:40 pm    Post subject: Reply with quote

zsh can be configured to colorize TAB completion. However, as (unfortunately) for most zsh features this is not enabled by default. You have to call something like
Code:
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}

(maybe this alone is not sufficient - it might be that you also have to activate some other options to make it work; I have so many activation options concerning completion in my zshrc that I forgot what is what...)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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