Skip to content

bhavya-dang/mstat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mstat

A modern stat alternative with beautiful bordered tables

Go Version License Release

demo

Installation

Prerequisites

Using Go

go install github.com/bhavya-dang/mstat@latest

Using Makefile

git clone https://github.com/bhavya-dang/mstat.git
cd mstat
make install

Manual

git clone https://github.com/bhavya-dang/mstat.git
cd mstat
go build -o build/mstat ./cmd/mstat
cp build/mstat "$(go env GOPATH)/bin/mstat"

Usage

mstat [file...] [flags]

Flags

Flag Short Description
--brief -b Minimal output (name, size)
--extended -x Extended output with all details
--no-icons -n Disable Nerd Font icons
--simple-icons -s Show only basic icons (folder, file, link)
--version -v Show version

View Modes

Default: name | size | type | last modified | permissions

Brief (-b): name | size | type

Extended (-x): name | size | type | last modified | permissions | permissions octal | links

Icons

By default, mstat shows language-specific icons for files (Go, Typescript, Python, etc.). Use --simple-icons to show only basic icons (folder, file, link, etc.). Use --no-icons to disable all icons.

Colors

By default, directories and their icons will appear in ansi blue color. I am planning to make this configurable soon when configuration system is implemented. This can be disabled using the --no-colors flag.

Examples

mstat .
mstat go.mod main.go README.md
mstat -n LICENSE
mstat -x internal/

License

MIT License

Contributing & Issues

This is an open-source project. Feel free to contribute to existing issues or open a new one if you find anything!