Installation
Installation Guide
Via package manager
Arch Linux (AUR)
yay -S g-ls
Homebrew 🍺
brew install g-ls
or use the homebrew tap:
brew tap equationzhao/core [email protected]:Equationzhao/homebrew-g.git
brew install g-ls
Windows 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.json
Winget
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.deb
tar.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@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
Last updated
Was this helpful?