lsg
lsg
is a cross-platform implementation of ls
written in Go
Features
- Eye candy (Colors, Nerd Font icons)
- Glob patterns (
*.go
, **/*
, **/*.png
)
- Tree output
- Execution speed is comparable to
ls
- Supports Windows hidden files and junctions
Install
With go get
:
go get github.com/operatios/lsg
Or download a binary from releases page
Usage
Examples:
lsg -alxb
lsg dir1 dir2 --sort=extension
lsg **/*.flac **/*.png
Note: to use Globs on Linux you need to enquote them like this: lsg "**/*"
Flags:
-a, --all do not ignore hidden files
-l, --long-listing use a long listing format
-b, --bytes with -l: print size in bytes
-x, --extend with -l: print filemode and owner/group info
-t, --tree use a tree format
-s, --sort string sort by size (s), time (t), extension (x), category (c)
-r, --reverse reverse file order
-c, --columns int set maximum amount of columns
--col-sep int set column separator length (default 2)
--no-targets disable link targets
--no-colors disable colors
--no-icons disable icons
Customization
To edit the color scheme or replace/add icons, you need to have Go installed
-
git clone https://github.com/operatios/lsg.git
-
Edit the color scheme and icons to your liking
-
Run go install
in edited directory
More screenshots
Special thanks to: