4 ms·
If all you want is colours in your `ls` output, then `ls` already has support. 1. turn on colours for ls in your shell. In your e.g. .bash_rc add: alias ls
by wavesquid 5y ago
If all you want is colours in your `ls` output, then `ls` already has support.
1. turn on colours for ls in your shell. In your e.g. .bash_rc add:
alias ls='ls --color=auto
2. if you want more or different colours, you can use the `LS_COLORS` environment variable. There are various pre-made snippets around you may want to use. e.g. https://github.com/trapd00r/LS_COLORS https://github.com/trapd00r/LS_COLORS