Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

color-ls

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

color-ls

Pure Python implementation of subset of ls command with colors and icons

  • 2.2.1
  • PyPI
  • Socket score

Maintainers
1

colorls

Pure Python implementation of ls command with colors and icons. Inspired from colorls. Requires Nerd Fonts for icon/glyphs.

Note: This is not optimized and runs an order of magnitude slower than native ls.

Installation

This is intended to run as an executable and not a library, it is preferable to use a tool such as pipx

pipx install color-ls

To customize the colors or add / change icons, copy config/colorls.toml to either $XDG_CONFIG_HOME/colorls/colorls.toml or ~/.colorls.toml and update as required.

Usage

$ lx -h

usage: lx [-h] [-1] [-a] [-B] [-d] [-f] [--sd] [--sf] [-F] [-i] [-I PATTERN]
          [-l] [-n] [-R] [-t [DEPTH]] [--version] [--si] [-U] [-H] [-x]
          ...

Pure Python implementation of `ls` command. Only a subset of available
arguments are implemented

positional arguments:
  FILE                  List information about the FILE(s).

options:
  -h, --help            show this help message and exit
  -1                    list items on individual lines
  -a, --all             do not ignore entries starting with .
  -B, --ignore-backups  do not list implied entries ending with ~
  -d, --directory       list directories themselves, not their contents
  -f, --file            list files only, not directories
  --sd, --sort-directories
                        list directories first
  --sf, --sort-files    list files first
  -F, --classify        append indicator (one of */=>@|) to entries
  -i, --inode           display inode number
  -I PATTERN, --ignore PATTERN
                        do not list implied entries matching shell PATTERN
  -l, --long            use a long listing format
  -n, --numeric-uid-gid
                        like -l, but list numeric user and group IDs
  -R, --recursive       list subdirectories recursively
  -t [DEPTH], --tree [DEPTH]
                        max tree depth
  --version             display current version number and exit
  --si                  display file size in SI units
  -U, --unsorted        do not sort; list entries in directory order
  -H, --header          do not display header
  -x                    do not display icons

Feature Requests/Bugs should be reported at https://gitlab.com/compilation-
error/colorls/-/issues

Screenshots

Default view

lx

No Icons

lx -x

List only files or dirs

lx -f lx -d

List files or dirs first

ls --sf lx --sd

Long Listing

lx -l

Tree View

lx -t[=3]

Globs should work as well

lx -I

Current Version

lx --version

Requirements

  • Python 3.10 or higher
  • Nerd Fonts

License

GPLv3

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc