Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gls: A Modern Go-based Alternative to ls

gls is a modern alternative to the traditional ls command, written in Go. It provides enhanced features like color-coding, file metadata display, tree view, and Git integration, similar to Rust's eza tool, but implemented in Go.

Features

  • Enhanced file display with color coding based on file types
  • Multiple output formats: grid, list, tree view
  • Git integration shows the status of files in Git repositories
  • Comprehensive file metadata display (permissions, size, timestamps)
  • Configurable sorting options
  • Cross-platform compatibility (Linux, macOS, Windows)

Installation

You can install gls using one of the following methods:

From Go (Recommended)

go install github.com/logando-al/gls@v0.1.0

From Source

git clone https://github.com/logando-al/gls.git
cd gls
go build -o gls ./cmd/gls

From GitHub Releases

Download the pre-compiled binary from the releases page.

Usage

# Basic usage (similar to ls)
gls

# Long view with file details
gls -l

# Include hidden files
gls -a

# Recursive view in tree format
gls -T

# Show Git status alongside file listings
gls --git

# Sort by modification time
gls --sort=time

Linux Alias Setup

If you're using Linux or a Unix-like system, you can create an alias to use gls in place of the standard ls command:

# Add this to your ~/.bashrc or ~/.zshrc file
alias ls="gls"

# Then reload your shell configuration
source ~/.bashrc  # or source ~/.zshrc

Status

This is currently a work in progress. For more details about the implementation plan, see plan.md.

Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue.

License

MIT License


Note: This project has been created with assistance from ilmu-v3.1 (ILMU AI)

About

go-ls: A modern Go-based alternative to ls command with enhanced features

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages