---
name: "vifm-convert-dircolors"
section: "1"
platform: "linux"
package: "vifm"
version: "0.14.4-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/vifm-convert-dircolors"
---

# vifm-convert-dircolors(1)

converts ls colorscheme to vifm colorscheme

## NAME

vifm-convert-dircolors - converts ls colorscheme to vifm colorscheme

## SYNOPSIS

**vifm-convert-dircolors** \[*-h*\|*--help*\] \[*-e*\|*--environment*\] \[*-r*\|*--human-readable*\] \[*dircolors\_file*\]

## DESCRIPTION

Converts ls file highlighting configuration (dircolors) into set of vifm highlight commands.  Outputs results to standard output.

## OPTIONS

- **-h, --help**

  Displays brief help message.

- **-e, --environment**

  Instructs the script to use **$LS\_COLORS** environment variable instead of data from file or standard input stream.

- **-r, --human-readable**

  Output patterns on separate lines.

- **dircolors\_file**

  Converting of colorscheme file only.

When both **--environment** option and **dircolors\_file** are absent, standard input stream is read.

## EXAMPLES

Parse **$LS\_COLORS** and append results of conversion to *~/.config/vifm/colors/Default.vifm*:

```
    vifm-convert-dircolors -e >> ~/.config/vifm/colors/Default.vifm
```

Parse */etc/DIR\_COLORS* and store results of conversion to *~/.config/vifm/colors/ls-based.vifm*:

```
    vifm-convert-dircolors /etc/DIR_COLORS > ~/.config/vifm/colors/ls-based.vifm
```

## SEE ALSO

[**dircolors**(1)](/dircolors/1.md), [**ls**(1)](/ls/1.md), [**vifm**(1)](/vifm/1.md)

## AUTHOR

This manual page was written by xaizek \<xaizek@posteo.net\>.
