GithubHelp home page GithubHelp logo

lesley-tw / vivid Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sharkdp/vivid

1.0 0.0 0.0 252 KB

A generator for LS_COLORS with support for multiple color themes

License: Apache License 2.0

Rust 100.00%

vivid's Introduction

vivid

vivid is a generator for the LS_COLORS environment variable that controls the colorized output of ls, tree, fd, etc.

It uses a YAML-based configuration format for the filetype-database and the color themes. In contrast to dircolors, the database and the themes are organized in different files. This allows users to choose and customize color themes independent from the collection of file extensions. Instead of using (cryptic) ANSI escape codes, colors can be specified in the RRGGBB format and will be translated to either truecolor (24-bit) ANSI codes or 8-bit codes for older terminal emulators.

Preview

snazzy molokai ayu
snazzy theme molokai theme ayu theme

Usage

Choose a color theme (for example: molokai). Then, add this to your shells RC file (~/.bashrc, ~/.zshrc, โ€ฆ):

export LS_COLORS="$(vivid generate molokai)"

True color

By default, vivid runs in true color mode (24-bit). If you don't use a terminal that supports 24-bit colors, use the --color-mode 8-bit option when running vivid (vivid -m 8-bit generate molokai). This will use interpolated 8-bit colors.

Installation

Build Status

On Debian-based systems

Download one of the Debian packages from the release page and install it via dpkg -i:

wget "https://github.com/sharkdp/vivid/releases/download/v0.5.0/vivid_0.5.0_amd64.deb"
sudo dpkg -i vivid_0.5.0_amd64.deb

On Arch Linux

You can install vivid from the official package repository:

pacman -S vivid

On other distrubutions

Check out the release page for binary builds.

Make sure that you install the contents of the share/vivid folder at /usr/share/vivid or at $HOME/.config/vivid.

Via cargo

If you have Rust 1.31 or higher, you can install vivid from source via cargo:

cargo install vivid

Make sure that you install the assets (database and themes) separately. See above for instructions.

License

Licensed under either of

at your option.

Useful sources

File types:

ANSI colors:

Similar and related projects

vivid's People

Contributors

sharkdp avatar chandlerc avatar gseidler avatar menelaos avatar mattbalvin avatar kaplanz avatar

Stargazers

Roman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.