⚙️
g - powerful and cross-platform ls
  • Start
  • Installation
  • 🥳Usage
    • Basic
      • View
      • Display
        • Layout
        • Setting
        • Misc
      • Filtering
      • Sorting
    • Advanced
      • default option
      • cli markdown renderer
      • fuzzy match path
      • args
Powered by GitBook
On this page
  • Installation Guide
  • Validate Installation
  • check new version

Was this helpful?

Edit on GitHub

Installation

PreviousStartNextBasic

Last updated 1 year ago

Was this helpful?

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 git@github.com: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

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

sudo dpkg -i g_$version_$arch.deb

tar.gz/zip

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

download from page

just download from , extract the gzip and add the executable file to your PATH

issue
release
release page