Home Explore Blog CI



nushell

commands/docs/config_use-colors.md
a3af534352ebe827d9668aa5f8c7c68985d3c2e9e22534270000000300000308
---
title: config use-colors
categories: |
  env
version: 0.104.0
env: |
  Get the configuration for color output.
usage: |
  Get the configuration for color output.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->

# `config use-colors` for [env](/commands/categories/env.md)

<div class='command-title'>Get the configuration for color output.</div>

## Signature

```> config use-colors {flags} ```


## Input/output types:

| input   | output |
| ------- | ------ |
| nothing | bool   |
## Notes
Use this command instead of checking `$env.config.use_ansi_coloring` to properly handle the "auto" setting, including environment variables that influence its behavior.

Chunks
3939f00d (1st chunk of `commands/docs/config_use-colors.md`)
Title: config use-colors: Get Color Output Configuration
Summary
The `config use-colors` command retrieves the configuration setting for color output. It provides a boolean value indicating whether color output is enabled. This command is recommended over directly checking `$env.config.use_ansi_coloring` as it correctly handles the 'auto' setting and related environment variables.