Comment on page


how to install g

Pre-built executable


Build from source

g is written in Golang, so if you want to build g yourself, you should have go1.21 (or later) installed.
go install -ldflags="-s -w"
make sure $GOPATH/bin is in your PATH

Via package manager


yay -S g-ls

home-brew tap

brew tap equationzhao/core [email protected]:Equationzhao/homebrew-g.git
brew install g-ls



scoop install
# upgrade
scoop uninstall g # uninstall first
# Error msg like this can be ignored
# Move-Item:
# Line |
# 2 | mv g-amd64.exe g.exe
# | ~~~~~~~~~~~~~~~~~~~~
# Move-Item:
# Line |
# 3 | mv g-amd64.shim g.shim
# | ~~~~~~~~~~~~~~~~~~~~~~

winget [help wanted]

feel free to contribute if you're interested in this project and familiar with winget

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
Last modified 19d ago