From 6ea41f777dc857a28ac501aa73f48c8e3e3c5e49 Mon Sep 17 00:00:00 2001 From: Johann Dreo Date: Thu, 16 May 2013 09:34:53 +0200 Subject: [PATCH] Replace the old cgcc alias with the cm command Use the theme features of colout --- .bashrc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index 048c4d9..341fb14 100644 --- a/.bashrc +++ b/.bashrc @@ -157,8 +157,13 @@ export EDITOR='gvim --nofork' # ipython shell with correct default apps alias ipy='ipython -pylab -p scipy --editor="gvim"' -# colored gcc output using the colout command -alias cgcc="colout :[0-9]+: yellow standard | colout error | colout warning magenta | colout pragma green standard" +# colored cmake/gcc output using the colout command +# usage: cm ./build_script +function cm() +{ + $@ 2>&1 | colout -t cmake | colout -t g++ +} + # shortcut to display the url config of remote repo in a git root alias git_remotes="grep -A 2 \"\[remote\" .git/config|grep -v fetch|sed \"s/\[remote \\\"//\"|sed ':a;N;\$!ba;s/\"\]\n\s*url = /\t/g'"