Color LS Zsh Plugin

July 15, 2020 ยท View on GitHub

This plugin defines a few helpful shortcuts to some colorls functions.

Prerequisites

  • colorls (which itself is a ruby gem)

Installation

Oh My Zsh

  • Clone the repository:
git clone https://github.com/Kallahan23/zsh-colorls ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-colorls
  • Enable this plugin by adding zsh-colorls to the plugins array in your zshrc file:

NOTE: Make sure it is listed after any plugin which sets aliases for the ls command, such as the common-aliases plugin.

plugins=(... zsh-colorls)

Aliases

AliasCommandDescription
lccolorlsColorls with no options
lcolorls -lList files
llcolorls -lAList, show almost all files (excludes ./ and ../)
lacolorls -laList, show all files
ltcolorls -ltList, sort by modification time (newest first)
lScolorls -lSList, sort by size (largest first)
lrcolorls --tree=5Show tree heirarchy, capped at depth 5 just in case
lxcolorls -lXList, sort by file type