Colorful make output
This handy piece of code colors errors and warnings in make output.
(put it in your .bash_profile)
ccred=$(echo -e â??\033[0;31m")
ccyellow=$(echo -e "\033[0;33m")
ccend=$(echo -e "\033[0m")
/usr/bin/make "$@" 2>&1 | sed -E -e "/[Ee]rror[: ]/ s%$pathpat%$ccred&$ccend%gâ? -e â??/[Ww]arning[: ]/ s%$pathpat%$ccyellow&$ccend%gâ?
An alternative would be to install colormake and use that instead of the normal make command.
|Print article||This entry was posted by Florian Beer on 4. December, 2008 at 10:30, and is filed under Development, Linux, Mac. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site.|
No comments yet.
No trackbacks yet.
about 2 years ago - No comments
Find below my “.bash_profile” file in OS X Lion and the referenced “.bash_ps1″ (slightly modified from lifehacker). Detailed walkthrough add some additional directories to PATH reference .bash_ps1 (see the file below) set grep and ls to display some fancy colors two aliases to often used commands order top by CPU usage display more human readable…
about 3 years ago - No comments
With the introduction of Apple’s newest operating system OS X 10.7 Lion, the company has taken one step further to disconnect their users from other competing user interaction schemes. Let me elaborate on this rather strong statement by going back in history a bit. I can still remember, when I got my first Mac, it…
about 3 years ago - 3 comments
Description GoAccess is a very handy tool, that runs in the terminal on most *nix Systems (e.g. Linux, Mac OS X, BSD etc.) and displays relatime data gathered from Apache’s access logfile. It offers a very structured display with different “modules” that break down the parsed access.log data into sections: General Statistics – Information analyzed…
about 4 years ago - 1 comment
Why didn’t I find this sooner? To re-run the last command in terminal use !! which becomes _extremely_ useful, if you forgot you needed root access sudo !! (read: sudo damnit! )
about 6 years ago - No comments
On Mai the 30th & 31st the Austrian “Linuxwochen” will again hit my former university in Eisenstadt. Look ahead for some very interesting talks by several highly skilled people. One event I’d especially like to draw your attention to is Oliver’s pice about “Linux Server Experience with VServer” on Fr. the 30th. at 17:15 hours.…
about 6 years ago - 1 comment
If you need to direct output into the void in your program on a *NIX system you simply pipe or redirect it to the null device /dev/null. Needing a similar functionality today in a C# .NET project I found the following equivalent: Stream.Null Seemed fairly useful to me
about 6 years ago - 1 comment
Yesterday the wonderful Howtoforge had an article that finally freed me from my beloved/hated scponly. MySecureShell offers all the functionality of a proper SFTP server, easily configurable and very well integrated. To get it up and running on Debian, just download the latest *.deb version from Sourceforge. Then install it with the following command: dpkg…
about 7 years ago - 1 comment
Log4Twitter is very similar to an idea Herbert an me had a couple of years ago, to use a Jabber messaging framework to get distributed logging and alerts from several servers/applications. It is a Java class that allows you to “log” to Twitter. This would easily allow you to set up an application that sends…
about 7 years ago - No comments
Jeff Atwood wrote a funny (and very true) article about what’s new or not so new in these Web 2.0 days. I especially had to laugh at the idea that “new” ideas on the net are merely replicas of old UNIX tools introduced by Marc Hedlund. talk, finger ICQ LISTSERV DejaNews ls Yahoo! directory find,…