/ls-icons

ls command with files icons

Primary LanguageCGNU General Public License v3.0GPL-3.0

image

Overview

This is a fork of coreutils with a modified ls that print icons

Dependencies

Installation

You need to install icons-in-terminal first.

  • Once installed, you can run:
$ ./bootstrap
$ export CFLAGS=-DNO_TRUE_COLOURS=1 # Execute this line _only_ if your terminal doesn't support true colours
$ export CC=clang CXX=clang++
$ ./configure --prefix=/opt/coreutils
$ make
$ make install
$ /opt/coreutils/bin/ls

You can check if your terminal support true colours here.

Customization

  • You can change colors in src/ls-icons.c.
  • To add new icons with file extensions, modify the array file_matches in src/ls-icons.c. Pull requests are welcome