Color Completion Using Zsh Modules On Linux Or Unix

Written By
Web Webster
Web Webster
Dec 18, 2008

[ Thanks to Mike
Golvach
for this link. ]

“Here’s another cool thing you can do with zsh that
involves color. Personally, I’m happy with a two-color scheme that
makes my eyes sizzle (like blue on red – or red on blue – both of
which look somewhat 3 dimensional), but you have to make room for
color in your life. It’s not all black and white, even though it
seems that way most of the time 😉

“In order to make use of this functionality, you’ll have to use
the modular functionality of zsh. Today, we’ll be looking at color
completion, but this isn’t to say that this is the limit of what
you can do with the shell. Just the limit of what I can manage to
type today… Doing color completion in zsh requires two modules:
complist and colors. The first requires you to set the extendedglob
option to true and the second isn’t really necessary, unless you
don’t want to remember what number equals what color in the ansi
color scheme. Below, some quick examples of how you can set this up
at the command line (or put in your .zshrc if you find you like it
and dont’ want to hassle with this constantly). Note that both
options require that you load up additional modules within
zsh:”


Complete Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.