macOS
brew install g-lslocal Homebrew formula metadata
sudo port install g-lsMacPorts ports tree · sysutils/g-ls/Portfile · 来源: api.github.com
安装
brew install g-lslocal Homebrew formula metadata
sudo port install g-lsMacPorts ports tree · sysutils/g-ls/Portfile · 来源: api.github.com
nix profile install nixpkgs#g-lsnixpkgs package indexes · pkgs/by-name/g-/g-ls/package.nix · 来源: api.github.com
sudo apk add g++Alpine Linux edge package indexes · g++ · 来源: dl-cdn.alpinelinux.org
sudo dnf install gcc-c++Fedora Rawhide package metadata · gcc-c++ · 来源: dl.fedoraproject.org
scoop install main/gScoop official bucket manifest trees · bucket/g.json · 来源: api.github.com
概览
Powerful and cross-platform ls
历史
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`.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
g | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/Equationzhao/g
安装元数据
| 软件包键 | brew:g-ls |
|---|---|
| 版本 | 0.31.2 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/g-ls |
| 主页 | https://equationzhao.github.io/g/ |
| 仓库 | https://github.com/Equationzhao/g |
| 上游文档 | https://equationzhao.github.io/g |
| 许可证 | MIT |
| 源码归档 | https://github.com/Equationzhao/g/archive/refs/tags/v0.31.2.tar.gz |
| 构建依赖 | go |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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/g来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.