In your “.profile” simply add this: alias grep=”grep –color=always” Now every time you use the grep command, it’ll automatically add the color=always parameter without you having to remember. Fortunately, there are shell aliases and that’s a far easier way to solve the problem.Has this changed under Lion? If so how do I add this neat functionality to grep all the time? login or is that unnecessary under Lion?) while -color=always does work on the command line it is so useful to me that I wanted to add it as a permanent fixture. But you may want to see that, how the different profile will look. The Profiles window will open as shown in the below image: You can change the profile directly here by selecting from the option On Startup, Open New window with profile drop-down menu. login in my home directory but a search of the net said just make the. In Mac, open the Terminal App, then click on the menu Terminal > Preferences. login (shell dependent) GREP_OPTIONS="-color=always" export GREP_OPTIONS So far, however, I have been unable to get this to work in Lion. In the book it tells me to add the following to the. Özet: Hi Dave! I have your book aimed at OSX Tiger, Learning UNIX, in which there is a section dealing with modifying the.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |