![]() If you aren’t certain what shell you are using, look in the Terminal window titlebar for “bash”, or you can check with the following command: This will work with Mac OS X 10.6, OS X 10.7, OS X 10.8, and beyond, as long as you are using the bash shell. bash_profile to link ls to something like ls -GFh, this would look like: Optionally, you may want to create an alias in. Type “ls” or “ls -la” to confirm the colorized output. ![]() Hit Control+O to save and open a new Terminal window.bash_profile confirm that it looks something like this in nano: Use the arrow keys to navigate to the bottom of the document and paste in either of the blocks of text below, depending on the terminals appearance (see man entry below for further customizations).The preview with ls -G will depend on the Terminals color settings and won’t necessarily represent the colors shown in the screenshots below, however. We’ll cover a customizable color output setting for both dark and light terminals, and you can get a preview of color ls output by typing “ls -G” at the command line. How to Add Color ‘ls’ Command Output in Mac OS X Terminal
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |