# Customize the command line colors

**URL:** <https://forum.qiime2.org/t/customize-the-command-line-colors/10071>\
**Category:** Technical Support\
**Tags:** q2cli\
**Created:** [June 3, 2019, 6:02pm UTC](https://forum.qiime2.org/t/customize-the-command-line-colors/10071 "2019-06-03T18:02:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![wasade](https://forum.qiime2.org/user_avatar/forum.qiime2.org/wasade/32/2317_2.png) [@wasade](https://forum.qiime2.org/u/wasade)\
**Post date:** [June 3, 2019, 6:02pm UTC](https://forum.qiime2.org/t/customize-the-command-line-colors/10071/1 "2019-06-03T18:02:46Z")

</div>

The expanded use of command line colors with `q2cli` in `2019.4` is great to see! Unfortunately, some of the colors (e.g., dark blues with the action list) are hard to see with a black terminal. Is there a means to customize the colors? I didn't see a mention when searching around -- I apologize if I overlooked documentation on this. A screenshot is attached showing how the dark blues currently look on my bash 4.1.2 terminal on Centos 6 (via `iTerm.app`) 🙂

Best,  
Daniel

 ![17%20AM](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/b/b60362fabeb7bafa6f283029914ea48ff39e6f79.png)

---

<div class="post-metadata">

**Author:** ![timanix](https://forum.qiime2.org/user_avatar/forum.qiime2.org/timanix/32/17879_2.png) [@timanix](https://forum.qiime2.org/u/timanix)\
**Post date:** [June 3, 2019, 6:40pm UTC](https://forum.qiime2.org/t/customize-the-command-line-colors/10071/2 "2019-06-03T18:40:43Z")

</div>

Hi! I don't know if you can replace it, but you definitely can try to use Jupyter lab. The background is white there, but you can customize it with themes. And it's really convinient to use.

---

<div class="post-metadata">

**Author:** ![wasade](https://forum.qiime2.org/user_avatar/forum.qiime2.org/wasade/32/2317_2.png) [@wasade](https://forum.qiime2.org/u/wasade)\
**Post date:** [June 3, 2019, 6:56pm UTC](https://forum.qiime2.org/t/customize-the-command-line-colors/10071/3 "2019-06-03T18:56:39Z")

</div>

Yes, thanks! Jupyter is great for many things, but I'm not quite ready to get rid of my terminal emulator nor to deviate from the high contrast black background which I've grown accustom too 🙂

Best,  
Daniel

---

<div class="post-metadata">

**Author:** ![timanix](https://forum.qiime2.org/user_avatar/forum.qiime2.org/timanix/32/17879_2.png) [@timanix](https://forum.qiime2.org/u/timanix)\
**Post date:** [June 3, 2019, 7:29pm UTC](https://forum.qiime2.org/t/customize-the-command-line-colors/10071/4 "2019-06-03T19:29:40Z")

</div>

I am in love with dark themes as well and sometimes it's hard to read dark red or dark blue, but I am keeping to use dark theme in Jupyter as well.

---

<div class="post-metadata">

**Author:** ![ebolyen](https://forum.qiime2.org/user_avatar/forum.qiime2.org/ebolyen/32/11_2.png) [@ebolyen](https://forum.qiime2.org/u/ebolyen)\
**Post date:** [June 3, 2019, 9:57pm UTC](https://forum.qiime2.org/t/customize-the-command-line-colors/10071/5 "2019-06-03T21:57:31Z")

</div>

There's not really a way to customize it at the moment, I had a similar hesitation with the blue, but it's the default directory color, so I was hoping that either it didn't bother people who use it, or they would have already switched to a different scheme.

Adding customization shouldn't be very difficult, as q2cli already has a cache directory. Do you have any suggestions on what the UX should be for changing it? A secret file, a dev or tool subcommand, a --config flag on root?

---

<div class="post-metadata">

**Author:** ![wasade](https://forum.qiime2.org/user_avatar/forum.qiime2.org/wasade/32/2317_2.png) [@wasade](https://forum.qiime2.org/u/wasade)\
**Post date:** [June 4, 2019, 12:49am UTC](https://forum.qiime2.org/t/customize-the-command-line-colors/10071/6 "2019-06-04T00:49:42Z")

</div>

Makes total sense!

What about something initially like:

```bash
$ qiime tools generate-q2cli-config # construct a default config
Configuration created: /foo/bar/baz.cfg

```

...which places it in the cache or other directory for editing. This would not be the most ideal for many users but is a starting point. It could easily be possible to have:

```bash
$ qiime tools install-q2cli-theme --i-theme some_theme.q2cli
Theme installed!

```

So that users could share their customizations 🎆

The format could be something like:

```yaml
darkblue:
    - methods
    - plugins
lightblue:
    - visualizations
red:
    - errors
yellow:
    - cautions
green:
    - allgood
purple: # not used
white:
    bold:
        usage
        types
    italicized:
        properties

```

This could get crazy quickly 🙂 By not having it a "color" configuration, it opens up to using this for more than just colors too. One extension beyond colors may be implicit translations if a user specifies a language... (such as through [translate-shell](https://github.com/soimort/translate-shell))?
