All Projects → Yash-Handa → Logo Ls

Yash-Handa / Logo Ls

Licence: mit
Modern ls command with vscode like File Icon and Git Integrations. Written in Golang

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Logo Ls

Vscode Great Icons
🆚 A big pack of icons (100+) for your files
Stars: ✭ 88 (-81.08%)
Mutual labels:  vscode, icons
Vscode Big Sur Icons
⛰️ Beautiful icons for VSCode based on macOS Big Sur design.
Stars: ✭ 96 (-79.35%)
Mutual labels:  vscode, icons
Ltfinderbuttons
My Finder buttons collection for macOS.
Stars: ✭ 269 (-42.15%)
Mutual labels:  vscode, icons
Vscode Es7 Javascript React Snippets
Extension for Javascript/React snippets with search supporting ES7 and babel features
Stars: ✭ 435 (-6.45%)
Mutual labels:  vscode
Papirus Icon Theme
Papirus icon theme for Linux
Stars: ✭ 4,703 (+911.4%)
Mutual labels:  icons
Feather
Simply beautiful open source icons
Stars: ✭ 21,029 (+4422.37%)
Mutual labels:  icons
Ts Monorepo
Template for setting up a TypeScript monorepo
Stars: ✭ 459 (-1.29%)
Mutual labels:  vscode
Vscode Graphql
VSCode GraphQL extension (autocompletion, go-to definition, syntax highlighting)
Stars: ✭ 435 (-6.45%)
Mutual labels:  vscode
Moka Icon Theme
Moka Icon Theme
Stars: ✭ 450 (-3.23%)
Mutual labels:  icons
Vscode R
R Extension for Visual Studio Code (execution, snippet, lint, R documantation, R Markdown)
Stars: ✭ 445 (-4.3%)
Mutual labels:  vscode
Webpack Pwa Manifest
Progressive Web App Manifest Generator for Webpack, with auto icon resizing and fingerprinting support.
Stars: ✭ 447 (-3.87%)
Mutual labels:  icons
Marp Vscode
Marp for VS Code: Create slide deck written in Marp Markdown on VS Code
Stars: ✭ 442 (-4.95%)
Mutual labels:  vscode
Cobra
A Commander for modern Go CLI interactions
Stars: ✭ 24,437 (+5155.27%)
Mutual labels:  cli-app
Edamagit
Magit for VSCode
Stars: ✭ 440 (-5.38%)
Mutual labels:  vscode
Suru Icon Theme
The source of the Suru icon and cursor set
Stars: ✭ 458 (-1.51%)
Mutual labels:  icons
Sindresorhus Cli
The Sindre Sorhus CLI
Stars: ✭ 436 (-6.24%)
Mutual labels:  cli-app
Macos Wallpaper
Manage the desktop wallpaper on macOS
Stars: ✭ 450 (-3.23%)
Mutual labels:  cli-app
Gistpad
VS Code extension for managing and sharing code snippets, notes and interactive samples using GitHub Gists
Stars: ✭ 443 (-4.73%)
Mutual labels:  vscode
Icons
Named, vector icons for elementary OS
Stars: ✭ 443 (-4.73%)
Mutual labels:  icons
Aidlearning Framework
🔥🔥AidLearning is a powerful mobile development platform, AidLearning builds a linux env supporting GUI, deep learning and visual IDE on Android...Now Aid supports OpenCL (GPU+NPU) for high performance acceleration...Linux on Android or HarmonyOS
Stars: ✭ 4,537 (+875.7%)
Mutual labels:  vscode

OpenSource go cli

logo-ls

GitHub go.mod Go version GitHub tag (latest SemVer) PRs AUR deb rpm linux apple Go

modern ls command with beautiful Icons and Git Integrations . Written in Golang

logo-ls

Command and Arguments supported are listed in HELP.md

Table of contents

Features

⬆️ TOC

This project is build to add esthetics to ls(coreutiles) command

  • Over 250+ icons 😎
  • Supporting 600+ files, extensions and directories
  • 16 Million, true colors supported
  • Git Status Integration
  • 🐎 Near native speed. (thanks to Golang)
  • Language agnostic binaries

This project is highly inspired by ls(coreutiles) and color ls. The project tries to find a happy path between speed and aesthetics.

Usage

⬆️ TOC

All supported flags can be found by using help flag $ logo-ls -?. The same has been provided as HELP.md.

The project also has its manpage which can be accessed by man logo-ls

Flags

Almost all flags are same as that of the classic ls command and behave similarly. The project can be used as a drop-in replacement for the ls(coreutiles)

  • With -1: List one entry per line
logo-ls -1

  • With -a (or) --all : Does not ignore entries starting with '.'
logo-ls -a

  • With -A (or) --almost-all : Does not ignore entries starting with '.', except ./ and ../
logo-ls -A

  • With -D (or) --git-status: Add Git Status to the listed Files and Directory
    • Note: As much I would love to make this the default behavior of the command but showing git status is an intensive task and may slow (a tiny bit) the command itself. If you want you can make alias to the command with -D applied to it.
logo-ls -D

  • With -l: Shows in long listing format other similar commands are:
    • -o: like -l, but do not list group information
    • -g: like -l, but do not list owner
    • -G (or) --no-group: in a long listing, don't print group names
logo-ls -l

  • With -R (or) --recursive: list subdirectories recursively
logo-ls -R

  • With -? (or) --help: print the help message
    • similar message can be found at HELP.md.
logo-ls -?

  • Sorting: There are many sorting flags available [default is alphabetic order]
    • With -t: sort by modification time, newest first
    • With -S: sort by file size, largest first
    • With -X: sort alphabetically by entry extension
    • With -U: do not sort; list entries in directory order
    • With -v: natural sort of (version) numbers within text
    • With -r (or) -reverse: reverse order while sorting
logo-ls -X

  • With -T (or) --time-style=value: set time/date format in long formats (-l, -o, -g). There are many options to chose from all are listed in HELP.md.
logo-ls -T

  • With -i (or) --disable-icon: don't print icons of the files
logo-ls -i

  • With -c (or) --disable-color: don't color icons, filenames and git status
    • Note: use a combination of -ic to print output to a file $ logo-ls -ic > t.txt
logo-ls -c

For all available commands see manpage or HELP.md

Combination of flags

This project uses getopt which is a golang variant of the classic getopt utility used in ls(coreutiles). Thus any combination of flags are possible and can be used.

logo-ls with flag combination

Multiple Files and Directories

You can provide multiple files and directories as command argument [default to PWD] and all will be displayed accordingly.

logo-ls  with multiple files

Prerequisites

⬆️ TOC

For proper working of logo-ls the following should be set

  • UTF-8: The terminal should be UTF-8 encoded (Can display Unicode-Code Point)
  • True Color Support: The terminal can display color (16 Million Colors). for more information of True Color and supported Terminals see here
  • Nerd Fonts: Nerd fonts are required to display Icons on screen. Basically Nerd Fonts patches your current font i.e., the last few unicode points (approx 2,824 out of 143,859) in the font are replaced with nerdy icons 🤓. The complete patching process is given here

Installation

⬆️ TOC

Installation is very easy and straight forward with many options to choose from.

As of now almost all installation methods require downloading resources from the Github Release page of the project, so to be a bit more secure consider Checking the Signature of logo-ls_SHA512sums.txt text file and then use this file to check weather the resource have been tampered. This complete process is explained in more detail in Check the downloaded Resource section below. (This is a recommended step and not at all required)

Debian (.deb package)

If you are on Debian or any other Debian based distribution then installation is simple.

Step 1

Download the .deb package from Github Release Page. Available OS_Architectures include: i386, amd64, arm64 and armV6. Check your downloaded resource(s) if you like.

Step 2

Use the dpkg -i path/to/downloaded/resource/ to install the binary and the manpage

Red Hat (.rpm package)

If you are on Red Hat or any other Red Hat based distribution (like fedora) then installation is simple.

Step 1

Download the .rpm package from Github Release Page. Available OS_Architectures include: i386, amd64, arm64 and armV6. Check your downloaded resource(s) if you like.

Step 2

Use the rpm -i path/to/downloaded/resource/ to install the binary and the manpage

Arch linux

Simply run yay -S logo-ls. (Or use the AUR helper of your choice)

Alternatively you can clone the PKGBUILD and build the package manually:

git clone https://aur.archlinux.org/logo-ls.git
cd logo-ls
makepkg -si

MacOS (Darwin)

To install logo-ls on darwin you have to download the binary. Support for Homebrew will come soon

Step 1

Download logo-ls_Darwin_x86_64.tar.gz from Github Release Page.

Step 2

Extract a gzipped archive in the current directory.

$ tar -xzf logo-ls_Darwin_x86_64.tar.gz

This will produce logo-ls_Darwin_x86_64 directory in the current directory with the following files: HELP.md, LICENSE, logo-ls and logo-ls.1.gz

Step 3

Install the binary logo-ls by placing it in /usr/local/bin

$ cd logo-ls_Darwin_x86_64
$ sudo cp logo-ls /usr/local/bin

Step 4

If you want the man page of logo-ls place logo-ls.1.gz in /usr/local/share/man/man1/

$ sudo cp logo-ls.1.gz /usr/local/share/man/man1/

Linux

To install logo-ls on any other Linux Distribution you have to download the binary.

Step 1

Download the .tar.gz archive from Github Release Page. Available OS_Arch include: i386, x86_64 (amd64), arm64 and armV6. Check your downloaded resource(s) if you like.

Step 2

Extract a gzipped archive in the current directory.

$ tar -xzf logo-ls_Linux_[ARCH].tar.gz

This will produce logo-ls_Linux_[ARCH] directory in the current directory with the following files: HELP.md, LICENSE, logo-ls and logo-ls.1.gz

Step 3

Install the binary logo-ls by placing it in /usr/local/bin

$ cd logo-ls_Linux_[ARCH]
$ sudo cp logo-ls /usr/local/bin

Step 4

If you want the man page of logo-ls place logo-ls.1.gz in /usr/share/man/man1/

$ sudo cp logo-ls.1.gz /usr/share/man/man1/

go get

If you have Golang installed on your system then the logo-ls can be downloaded and installed using the the go cli tool provided by the language

Step 1

The go cli installs the binary in the directory specified by $GOBIN env variable [default: ~/go/bin/]. In order to call logo-ls from anywhere in user-space, this directory which holds the binary must be present in $PATH env variable.

$ echo $PATH

Step 2

Now simply install the binary using go get in home directory

$ cd ~
$ go get github.com/Yash-Handa/logo-ls

Build from Source

It is quite simple to build the command from source. You should have Golang installed on your system.

Step 1

Clone this repository.

$ git clone https://github.com/Yash-Handa/logo-ls.git

Step 2

cd into the directory logo-ls. Then run go mod tidy to download the dependencies and after that go build to build your system specific binary

$ cd logo-ls
$ go mod tidy
$ go build

the go build command will produce logo-ls executable binary in the current directory.

Step 3

Place the logo-ls executable in a directory reachable from $PATH env variable.

$ sudo cp logo-ls /usr/local/bin

Step 4

If you want the man page of logo-ls place logo-ls.1.gz in /usr/share/man/man1/

$ sudo cp logo-ls.1.gz /usr/share/man/man1/

Check the downloaded Resource

After downloading the Resource(s) from the Github Release Page follow the below steps to check its authenticity.

Step 1

Download logo-ls_SHA512sums.txt.sig and logo-ls_SHA512sums.txt from Github Release Page and place them in the same directory as of the downloaded resource(s)

Step 2

Receive the public key of the signing party from keyserver.ubuntu.com server. This will add the developer's public key to your keyring.

$ gpg2 --keyid-format long --keyserver keyserver.ubuntu.com --recv-keys 0x28182066bcacccb2

gpg: key 28182066BCACCCB2: "Yash Handa (logo-ls) <[email protected]>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1

Step 3

check the signature on logo-ls_SHA512sums.txt

$ gpg2 --keyid-format long --verify logo-ls_SHA512sums.txt.sig logo-ls_SHA512sums.txt

gpg: Signature made Tue 08 Sep 2020 10:21:52 PM IST
gpg:                using RSA key D9498B225223344C0205FDF528182066BCACCCB2
gpg: Good signature from "Yash Handa (logo-ls) <[email protected]>" [ultimate]

A Good signature means that the checked file was definitely signed by the owner of the keyfile stated (if they didn’t match, the signature would be reported as BAD)

Step 4

Use logo-ls_SHA512sums.txt file to verify the authenticity of the downloaded resource(s)

$ sha512sum -c logo-ls_SHA512sums.txt 2>&1 | grep OK

logo-ls_Linux_x86_64.tar.gz: OK
logo-ls_Linux_arm64.tar.gz: OK
logo-ls_Darwin_x86_64.tar.gz: OK
logo-ls_Linux_i386.tar.gz: OK
logo-ls_Linux_armv6.tar.gz: OK

Recommended configurations

⬆️ TOC

To add some short command (say, ils or ls) with some flag options by default, add this to your shell configuration file (~/.bashrc, ~/.zshrc, etc.) :

alias ils='logo-ls'
alias ila='logo-ls -A'
alias ill='logo-ls -al'
# equivalents with Git Status on by Default
alias ilsg='logo-ls -D'
alias ilag='logo-ls -AD'
alias illg='logo-ls -alD'

Updating

⬆️ TOC

As of now Updating is exactly similar as installation for Debian (.deb package), Red Hat (.rpm package), MacOS (Darwin) and Linux

Icon Set

⬆️ TOC

icons

Contributing

⬆️ TOC

The project is always open to contributions. Especially for:

  • More Icons
  • Better ways to distribute software
  • Translations to other Languages (linguistic)

License

⬆️ TOC

The project is licensed under MIT. The Licence is available here.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].