macOS
brew install g-lslocal Homebrew formula metadata
sudo port install g-lsMacPorts ports tree · sysutils/g-ls/Portfile · source: api.github.com
brew
Powerful and cross-platform ls. Version 0.31.2 via Homebrew; verified 2026-04-15.
install
brew install g-lslocal Homebrew formula metadata
sudo port install g-lsMacPorts ports tree · sysutils/g-ls/Portfile · source: api.github.com
nix profile install nixpkgs#g-lsnixpkgs package indexes · pkgs/by-name/g-/g-ls/package.nix · source: api.github.com
sudo apk add g++Alpine Linux edge package indexes · g++ · source: dl-cdn.alpinelinux.org
sudo apt install g++Debian stable package indexes · g++ · source: deb.debian.org
sudo dnf install gcc-c++Fedora Rawhide package metadata · gcc-c++ · source: dl.fedoraproject.org
scoop install main/gScoop official bucket manifest trees · bucket/g.json · source: api.github.com
overview
Powerful and cross-platform ls
history
g is a Go-based, cross-platform `ls` alternative packaged in Homebrew as `g-ls` and installed as the `g` executable. The upstream README describes it as feature-rich and customizable, with icons, colors, multiple layouts, git status integration, fuzzy path matching, and hyperlink support.
The repository was created in April 2023, and GitHub Releases show v0.2.1 published the same day. The README frames g as an enhanced directory lister rather than a file manager, adding visual layouts and metadata to the familiar `ls` role.
The project continued through frequent 0.x releases; by 2025 it had reached the 0.30 series, and the visible release feed shows v0.31.2 in 2026. The bundled manual documents a broad option surface for display formats, filtering, fuzzy indexing, shell initialization, sorting, and metadata columns.
Official installation notes document Arch AUR, Homebrew, a Homebrew tap, MacPorts, Scoop, pre-built release artifacts, deb packages, install scripts, and `go install`. That spread follows the usual adoption route for Go CLIs: direct binary releases, Go module installation, and native package-manager recipes.
Users run `g path(s)` as an `ls` replacement and enable options such as icons, long format, tree layout, JSON, markdown, CSV, git status, MIME and charset display, fuzzy path matching, and shell initialization scripts for Bash, Zsh, Fish, PowerShell, and Nushell.
g is interesting in the crowded modern-ls category because it combines exa/eza-style visual listing, lsd-style icons, git metadata, multiple machine-readable output formats, and shell integration in a single Go binary. For package maintainers, the main wrinkle is name collision: the package is `g-ls` in Homebrew while the executable is `g`.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
g | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/Equationzhao/g
install metadata
| Package key | brew:g-ls |
|---|---|
| Version | 0.31.2 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/g-ls |
| Homepage | https://equationzhao.github.io/g/ |
| Repository | https://github.com/Equationzhao/g |
| Upstream docs | https://equationzhao.github.io/g |
| License | MIT |
| Source archive | https://github.com/Equationzhao/g/archive/refs/tags/v0.31.2.tar.gz |
| Last updated | 2026-04-15T19:19:20+09:00 |
| Pulse | updated |
| Build dependencies | go |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | g-ls |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
g-ls
nix profile install nixpkgs#g-lsg-ls
sudo port install g-lsg++ 4:14.2.0-1
GNU C++ compiler
sudo apt install g++g++ 4:13.2.0-7ubuntu1
GNU C++ compiler
sudo apt install g++g++ 15.2.0-r5
GNU C++ standard library and compiler
sudo apk add g++gcc-c++ 16.1.1-2.fc45
C++ support for GCC
sudo dnf install gcc-c++main/g
scoop install main/gsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.