supercrabtree / k

k is the new l, yo
1.78k stars 123 forks source link

Use $LS_COLORS to display the colors of the file names if possible. #73

Open xuhdev opened 7 years ago

xuhdev commented 7 years ago

Close #19.


If LS_COLORS is not defined, eval $(dircolors) should define a good default LS_COLORS. We can also add that when LS_COLORS is not defined.

xuhdev commented 7 years ago

It's totally possible to avoid calling ls by parsing $LS_COLORS, but can the shell script version do faster than leaving the task to a fast program in native code?