Use colors to help distinguish between files and directories in your Mac or Unix Terminal. you will need to change the name to ls!!!! (also, sometimes my router takes a little walk in the park. Mac Terminal Colors for List Command: ls. If you just want to get away from the default blue for directories try to find the correct way for your shell in the other comments in this section.so find a copy of color_ls (for example: -HERE- and check which shell you are using and you too, can have an easy to read terminal display. Here is a sample from my environment.mine (there is a hint about that too!!!) where I am not using the DIRCOLORS but obtained some of the information from there and then wrote the infor in multiple lines as follows: each setenv LS_COLORS "XXXX:XXXX" should be on one line!!! This is desirable because a nice set of color choices may end up being a very long list. This information has been provided in some hints previously on this web-site.įileutils also includes a small script that you can use to automatically set your environment variable it is called DIRCOLORS and you can make it executable and then setenv LS_COLORS 'path/to/DIRCOLORS' The version in the GNU tools ( search for fileutil in google ) includes that capability. How do i change the color for directories with ls mac mac os x#the version of ls which ships with Mac OS X does not support the 'color=auto' command which you need to invoke when you are using ls. It is easy, and will give you some experience compiling (with the Dev tools installed and with the idea that you might want to discover what the package installs and then backup all your old utils first).Īll of the comments on this add up to the fact that:Īs far as I know. or for the adventurous, compile the Gnu fileutils 4-1.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |