Colorls
A Node.js app that colorizes the ls output with color and icons. Here are the screenshots of working example on an iTerm2 terminal (Mac OS), oh-my-zsh
with spacehip
theme and powerline nerd-font + awesome-config
font with the Ayu dark
color theme.
Installation
-
Install Node.js (preferably, version > 4.0.0)
-
Install the patched fonts of powerline nerd-font and/or font-awesome. Have a look at the Nerd Font README for more installation instructions.
Note for iTerm2 users - Please enable the Nerd Font at iTerm2 > Preferences > Profiles > Text > Non-ASCII font > Hack Regular Nerd Font Complete.
-
Install the colorls app with
npm install -g @husnulanwari/colorls
-
Start using colorls
🎉 -
Have a look at Recommended configurations and Custom configurations .
Recommended configurations
-
To add some short command (say,
lc
), add this to your shell configuration file (~/.bashrc
,~/.zshrc
, etc.) :alias lc='colorls' alias ll='colorls -- -lAst'
You can find options usage in custom configurations section.
Custom configurations
-
With
--help
: Prints not so very helpful help menu (updated soon) -
With
--sort
(default): Sort output to show directory first. Use--no-sort
to showls
output as usual : -
With
ls
flags. You can usels
flags, just put it after--
, something likels --sort -- -lAst . ./pictures
-
With
--dir-color
,--file-color
,--meta-color
and--error-color
: Change default color
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.