Coder Social home page Coder Social logo

acook / lister Goto Github PK

View Code? Open in Web Editor NEW
5.0 4.0 0.0 166 KB

list, sort, filter and display files and directories

Home Page: https://github.com/acook/lister/#readme

Shell 7.14% Crystal 91.12% Dockerfile 1.74%
directory-lister command-line-tool ls filetype theme-support true-color

lister's Introduction

Lister

Lister is a little directory lister that does filetype analysis!

GitHub release CircleCI

Killer Features

Lister can be used to get more information about your files or just to present it differently.

It's magic!

What sets Lister apart from standard ls is that it's magic! I mean it's libMagic. It guesses the type of the file by its "magic number" or file contents instead of just by file extension.

It's colorful!

Lister supports 16 million colors in it's output. Seriously. And most modern terminal emulators support it. It also supports 256 extended colors and standard 16 colors if you want to have a fallback just in case, or maybe you want to keep synchrony with your terminal palette.

It's configurable!

You can make your own themes!

Just export the internal theme so you don't have to start from scratch:

$ lister --colors-export ~/my_new_theme.yml

Then modify the colors to your hearts content!

And you can make Lister always use your color theme by setting an environment variable:

$ export LISTER_THEME=~/my_new_theme.yml

You could also create a shorter alias and select your color theme like this:

$ alias l=lister --colors my_new_theme.yml

This also means you can create multiple aliases with different themes for different use cases!

Usage

lister 0.1.0
Anthony M. Cook <[email protected]>
http://github.com/acook/lister

lister is a file and directory listing utility which shows colorized and structured libmagic types.

USAGE:
	lister [OPTIONS] [PATH ...]
	lister --colors-export PATH
	lister --colors-list

OPTIONS:
	--			stop processing commandline options and interpret remaining arguments as paths
	-A			show hidden files (excluding . and ..)
	--colors FILE		use specified YAML file as color theme
	--colors-export FILE	export internal color theme as YAML file
	--colors-list		display list of known themeable file types in the associated color from the current theme
	--color-depth DEPTH	use the 16, 256, or true color palette
	-h			display usage information (you're looking at it!)
	-K			show type names as seen by Lister
	-Km			show MIME types from libMagic
	-R			recurse infinite
	--recurse DEPTH		recurse to depth
	<paths>			a list of zero or more paths will scan PWD if no path supplied

ENVIRONMENT:
	LISTER_COLORS		full path to the Lister theme YAML file, can be overridden on the commandline with --colors

Installing

Check out the releases page for downloads and instructions!

Building

You'll need a copy of the code:

  • git clone https://github.com/acook/lister
  • cd lister

The setup script will install crystal for you if you're on a system with brew or apt:

  • ./scripts/setup

Run the build script:

  • ./scripts/build

Put the resulting binary somewhere in your path:

  • mv bin/lister ~/bin/

To build a release version, run the release script:

  • ./scripts/release (if you don't have Docker installed, it will only build it for the local machine)

Created By

Copyright 2016-2021 - Anthony M. Cook

lister's People

Contributors

acook avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  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.