Installation
Installation Guide
Via package manager
Arch Linux (AUR)
yay -S g-lsHomebrew 🍺
brew install g-lsor use the homebrew tap:
brew tap equationzhao/core [email protected]:Equationzhao/homebrew-g.gitbrew install g-lsWindows Scoop
scoop install https://raw.githubusercontent.com/Equationzhao/g/master/scoop/g.json# upgrade
scoop uninstall g # uninstall first
scoop install https://raw.githubusercontent.com/Equationzhao/g/master/scoop/g.jsonWinget
TODO, see issue
Pre-built executable
install script
install
bash -c "$(curl -fsSLk https://raw.githubusercontent.com/Equationzhao/g/master/script/install.sh)"uninstall
curl -fsSLk https://raw.githubusercontent.com/Equationzhao/g/master/script/install.sh | bash /dev/stdin -r deb
download from release page
sudo dpkg -i g_$version_$arch.debtar.gz/zip
just download from release page, extract the gzip and add the executable file to your PATH
From source
Requires Go version >= 1.21
go install -ldflags="-s -w" github.com/Equationzhao/g@latestAlternatively, 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 versionyou 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 updated
Was this helpful?