go install -ldflags="-s -w" github.com/Equationzhao/g@latest
Alternatively, clone the repo for a dev version:
git clone github.com/Equationzhao/g
cd g
go build -ldflags="-s -w"
# then add the executable file to your `PATH`
Validate Installation
use g -v to check version
g -v # check version
you should see output like this:
💡 g - a powerful ls
| Version 0.11.1
| Go Version 1.20.5
| Compiler gc
| Platform linux/amd64
| Copyright (C) 2023 Equationzhao. MIT License
| This is free software: you are free to change and redistribute it.
| There is NO WARRANTY, to the extent permitted by law.
check new version
g --check-new-version
download from page
just download from , extract the gzip and add the executable file to your PATH