athityakumar / colorls

A Ruby gem that beautifies the terminal's ls command, with color and font-awesome icons. :tada:
MIT License
4.89k stars 387 forks source link

a way to use LS_COLORS? #410

Open simona70 opened 3 years ago

simona70 commented 3 years ago

very nice, but a way to use LS_COLORS instead internal database color? I have this LS_COLOR and is very complex:

echo $LS_COLORS
~=0;38;2;102;102;102:tw=0:ln=0;38;2;255;106;193:mi=0;38;2;0;0;0;48;2;255;92;87:di=0;38;2;87;199;255:ex=1;38;2;255;92;87:cd=0;38;2;255;106;193;48;2;51;51;51:bd=0;38;2;154;237;254;48;2;51;51;51:ow=0:no=0:so=0;38;2;0;0;0;48;2;255;106;193:pi=0;38;2;0;0;0;48;2;87;199;255:st=0:fi=0:or=0;38;2;0;0;0;48;2;255;92;87:.o=0;38;2;102;102;102:.c=0;38;2;90;247;142:.z=4;38;2;154;237;254:.m=0;38;2;90;247;142:.t=0;38;2;90;247;142:.r=0;38;2;90;247;142:.d=0;38;2;90;247;142:.h=0;38;2;90;247;142:.a=1;38;2;255;92;87:.p=0;38;2;90;247;142:.pl=0;38;2;90;247;142:.kt=0;38;2;90;247;142:.pp=0;38;2;90;247;142:.mn=0;38;2;90;247;142:.rm=0;38;2;255;180;223:.hi=0;38;2;102;102;102:.cp=0;38;2;90;247;142:css=0;38;2;90;247;142:.ll=0;38;2;90;247;142:.la=0;38;2;102;102;102:.ps=0;38;2;255;92;87:.vb=0;38;2;90;247;142:.td=0;38;2;90;247;142:.ml=0;38;2;90;247;142:.sh=0;38;2;90;247;142:.gv=0;38;2;90;247;142:.hs=0;38;2;90;247;142:.gz=4;38;2;154;237;254:.7z=4;38;2;154;237;254:.bz=4;38;2;154;237;254:.jl=0;38;2;90;247;142:.md=0;38;2;243;249;157:.py=0;38;2;90;247;142:.di=0;38;2;90;247;142:.cs=0;38;2;90;247;142:.lo=0;38;2;102;102;102:.so=1;38;2;255;92;87:.ex=0;38;2;90;247;142:.as=0;38;2;90;247;142:.xz=4;38;2;154;237;254:.ui=0;38;2;243;249;157:.pm=0;38;2;90;247;142:.rb=0;38;2;90;247;142:.fs=0;38;2;90;247;142:.cr=0;38;2;90;247;142:.js=0;38;2;90;247;142:.nb=0;38;2;90;247;142:.hh=0;38;2;90;247;142:.el=0;38;2;90;247;142:.go=0;38;2;90;247;142:.cc=0;38;2;90;247;142:.rs=0;38;2;90;247;142:.bc=0;38;2;102;102;102:.ko=1;38;2;255;92;87:.ts=0;38;2;90;247;142:.tsx=0;38;2;90;247;142:.fsi=0;38;2;90;247;142:.deb=4;38;2;154;237;254:.bin=4;38;2;154;237;254:.ind=0;38;2;102;102;102:.kts=0;38;2;90;247;142:hgrc=0;38;2;165;255;195:.mkv=0;38;2;255;180;223:.psd=0;38;2;255;180;223:TODO=1:.c++=0;38;2;90;247;142:.odt=0;38;2;255;92;87:.bsh=0;38;2;90;247;142:.awk=0;38;2;90;247;142:.fls=0;38;2;102;102;102:.bcf=0;38;2;102;102;102:.dll=1;38;2;255;92;87:.mov=0;38;2;255;180;223:.epp=0;38;2;90;247;142:.zip=4;38;2;154;237;254:.zsh=0;38;2;90;247;142:.lua=0;38;2;90;247;142:.idx=0;38;2;102;102;102:.sty=0;38;2;102;102;102:.gvy=0;38;2;90;247;142:.iso=4;38;2;154;237;254:.dot=0;38;2;90;247;142:.mp4=0;38;2;255;180;223:.com=1;38;2;255;92;87:.mid=0;38;2;255;180;223:.kex=0;38;2;255;92;87:.h++=0;38;2;90;247;142:.ini=0;38;2;243;249;157:.erl=0;38;2;90;247;142:.vob=0;38;2;255;180;223:.sxw=0;38;2;255;92;87:.csx=0;38;2;90;247;142:.xcf=0;38;2;255;180;223:.ppt=0;38;2;255;92;87:.apk=4;38;2;154;237;254:.php=0;38;2;90;247;142:.rpm=4;38;2;154;237;254:.bak=0;38;2;102;102;102:.swf=0;38;2;255;180;223:.exe=1;38;2;255;92;87:.xmp=0;38;2;243;249;157:.ltx=0;38;2;90;247;142:.bat=1;38;2;255;92;87:.arj=4;38;2;154;237;254:.cpp=0;38;2;90;247;142:.bib=0;38;2;243;249;157:.inc=0;38;2;90;247;142:.avi=0;38;2;255;180;223:.pas=0;38;2;90;247;142:.ods=0;38;2;255;92;87:.pro=0;38;2;165;255;195:.git=0;38;2;102;102;102:.png=0;38;2;255;180;223:.elm=0;38;2;90;247;142:.bmp=0;38;2;255;180;223:.ipp=0;38;2;90;247;142:.out=0;38;2;102;102;102:.rtf=0;38;2;255;92;87:.hpp=0;38;2;90;247;142:.ttf=0;38;2;255;180;223:.svg=0;38;2;255;180;223:.tmp=0;38;2;102;102;102:.tml=0;38;2;243;249;157:.dox=0;38;2;165;255;195:.tif=0;38;2;255;180;223:.tex=0;38;2;90;247;142:.bst=0;38;2;243;249;157:.mp3=0;38;2;255;180;223:.otf=0;38;2;255;180;223:.fsx=0;38;2;90;247;142:.mli=0;38;2;90;247;142:.yml=0;38;2;243;249;157:.xls=0;38;2;255;92;87:.clj=0;38;2;90;247;142:.gif=0;38;2;255;180;223:.bbl=0;38;2;102;102;102:.txt=0;38;2;243;249;157:.asa=0;38;2;90;247;142:.pbm=0;38;2;255;180;223:.blg=0;38;2;102;102;102:.jpg=0;38;2;255;180;223:.mpg=0;38;2;255;180;223:.cxx=0;38;2;90;247;142:.tgz=4;38;2;154;237;254:.pgm=0;38;2;255;180;223:.tcl=0;38;2;90;247;142:.cfg=0;38;2;243;249;157:.ps1=0;38;2;90;247;142:.rar=4;38;2;154;237;254:.xlr=0;38;2;255;92;87:.exs=0;38;2;90;247;142:.dmg=4;38;2;154;237;254:.sql=0;38;2;90;247;142:.rst=0;38;2;243;249;157:.m4v=0;38;2;255;180;223:.toc=0;38;2;102;102;102:.ppm=0;38;2;255;180;223:.pkg=4;38;2;154;237;254:.sxi=0;38;2;255;92;87:.log=0;38;2;102;102;102:.pod=0;38;2;90;247;142:.aux=0;38;2;102;102;102:.htc=0;38;2;90;247;142:.pps=0;38;2;255;92;87:.tbz=4;38;2;154;237;254:.jar=4;38;2;154;237;254:.doc=0;38;2;255;92;87:.ogg=0;38;2;255;180;223:.bz2=4;38;2;154;237;254:.wma=0;38;2;255;180;223:.mir=0;38;2;90;247;142:.xml=0;38;2;243;249;157:.bag=4;38;2;154;237;254:.inl=0;38;2;90;247;142:.flv=0;38;2;255;180;223:.pdf=0;38;2;255;92;87:.def=0;38;2;90;247;142:.pid=0;38;2;102;102;102:.wmv=0;38;2;255;180;223:.img=4;38;2;154;237;254:.csv=0;38;2;243;249;157:.eps=0;38;2;255;180;223:.vcd=4;38;2;154;237;254:.ics=0;38;2;255;92;87:.nix=0;38;2;243;249;157:.vim=0;38;2;90;247;142:.m4a=0;38;2;255;180;223:.ico=0;38;2;255;180;223:.aif=0;38;2;255;180;223:.pyc=0;38;2;102;102;102:.tar=4;38;2;154;237;254:.fon=0;38;2;255;180;223:.swp=0;38;2;102;102;102:.hxx=0;38;2;90;247;142:.sbt=0;38;2;90;247;142:.cgi=0;38;2;90;247;142:.ilg=0;38;2;102;102;102:.wav=0;38;2;255;180;223:.odp=0;38;2;255;92;87:.htm=0;38;2;243;249;157:.dpr=0;38;2;90;247;142:.fnt=0;38;2;255;180;223:.mpeg=0;38;2;255;180;223:.jpeg=0;38;2;255;180;223:.rlib=0;38;2;102;102;102:.orig=0;38;2;102;102;102:.epub=0;38;2;255;92;87:.html=0;38;2;243;249;157:.diff=0;38;2;90;247;142:.psd1=0;38;2;90;247;142:.pptx=0;38;2;255;92;87:.purs=0;38;2;90;247;142:.tiff=0;38;2;255;180;223:.bash=0;38;2;90;247;142:.conf=0;38;2;243;249;157:.tbz2=4;38;2;154;237;254:.json=0;38;2;243;249;157:.fish=0;38;2;90;247;142:.hgrc=0;38;2;165;255;195:.h264=0;38;2;255;180;223:.xlsx=0;38;2;255;92;87:.java=0;38;2;90;247;142:.dart=0;38;2;90;247;142:.lisp=0;38;2;90;247;142:.flac=0;38;2;255;180;223:.yaml=0;38;2;243;249;157:.psm1=0;38;2;90;247;142:.lock=0;38;2;102;102;102:.docx=0;38;2;255;92;87:.less=0;38;2;90;247;142:.make=0;38;2;165;255;195:.toml=0;38;2;243;249;157:README=0;38;2;40;42;54;48;2;243;249;157:.patch=0;38;2;90;247;142:passwd=0;38;2;243;249;157:.ipynb=0;38;2;90;247;142:.cmake=0;38;2;165;255;195:.class=0;38;2;102;102;102:.cache=0;38;2;102;102;102:shadow=0;38;2;243;249;157:.toast=4;38;2;154;237;254:.xhtml=0;38;2;243;249;157:.shtml=0;38;2;243;249;157:.cabal=0;38;2;90;247;142:.dyn_o=0;38;2;102;102;102:.scala=0;38;2;90;247;142:.mdown=0;38;2;243;249;157:.swift=0;38;2;90;247;142:LICENSE=0;38;2;153;153;153:INSTALL=0;38;2;40;42;54;48;2;243;249;157:.matlab=0;38;2;90;247;142:.gradle=0;38;2;90;247;142:.ignore=0;38;2;165;255;195:.groovy=0;38;2;90;247;142:COPYING=0;38;2;153;153;153:TODO.md=1:.dyn_hi=0;38;2;102;102;102:.config=0;38;2;243;249;157:.flake8=0;38;2;165;255;195:.desktop=0;38;2;243;249;157:setup.py=0;38;2;165;255;195:Doxyfile=0;38;2;165;255;195:.gemspec=0;38;2;165;255;195:Makefile=0;38;2;165;255;195:TODO.txt=1:.cmake.in=0;38;2;165;255;195:configure=0;38;2;165;255;195:COPYRIGHT=0;38;2;153;153;153:.markdown=0;38;2;243;249;157:.kdevelop=0;38;2;165;255;195:README.md=0;38;2;40;42;54;48;2;243;249;157:.fdignore=0;38;2;165;255;195:.rgignore=0;38;2;165;255;195:.DS_Store=0;38;2;102;102;102:.gitconfig=0;38;2;165;255;195:Dockerfile=0;38;2;243;249;157:.gitignore=0;38;2;165;255;195:SConstruct=0;38;2;165;255;195:README.txt=0;38;2;40;42;54;48;2;243;249;157:.localized=0;38;2;102;102;102:CODEOWNERS=0;38;2;165;255;195:.scons_opt=0;38;2;102;102;102:SConscript=0;38;2;165;255;195:INSTALL.md=0;38;2;40;42;54;48;2;243;249;157:.travis.yml=0;38;2;90;247;142:LICENSE-MIT=0;38;2;153;153;153:MANIFEST.in=0;38;2;165;255;195:Makefile.am=0;38;2;165;255;195:.gitmodules=0;38;2;165;255;195:INSTALL.txt=0;38;2;40;42;54;48;2;243;249;157:Makefile.in=0;38;2;102;102;102:.synctex.gz=0;38;2;102;102;102:.applescript=0;38;2;90;247;142:configure.ac=0;38;2;165;255;195:.fdb_latexmk=0;38;2;102;102;102:CONTRIBUTORS=0;38;2;40;42;54;48;2;243;249;157:appveyor.yml=0;38;2;90;247;142:.clang-format=0;38;2;165;255;195:.gitattributes=0;38;2;165;255;195:CMakeCache.txt=0;38;2;102;102;102:LICENSE-APACHE=0;38;2;153;153;153:CMakeLists.txt=0;38;2;165;255;195:CONTRIBUTORS.md=0;38;2;40;42;54;48;2;243;249;157:requirements.txt=0;38;2;165;255;195:CONTRIBUTORS.txt=0;38;2;40;42;54;48;2;243;249;157:.sconsign.dblite=0;38;2;102;102;102:package-lock.json=0;38;2;102;102;102:*.CFUserTextEncoding=0;38;2;102;102;102

avdv commented 3 years ago

Currently, there is no support for LS_COLORS. I developed https://github.com/avdv/scalals partly because of this.

simona70 commented 3 years ago

Thxs :-)


Simona

Il giorno lun 2 nov 2020 alle ore 12:45 Claudio Bley < notifications@github.com> ha scritto:

Currently, there is no support for LS_COLORS. I developed https://github.com/avdv/scalals partly because of this.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/athityakumar/colorls/issues/410#issuecomment-720422321, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJ5PBXJP23INJKCXLW7ECN3SN2LV7ANCNFSM4THKT6TQ .

stalinkay commented 2 years ago

Currently, there is no support for LS_COLORS. I developed avdv/scalals partly because of this.

Waiting for the day we get LS_COLORS support in colorls !