Replace the old cgcc alias with the cm command
Use the theme features of colout
This commit is contained in:
parent
6f8f107e9e
commit
6ea41f777d
1 changed files with 7 additions and 2 deletions
9
.bashrc
9
.bashrc
|
|
@ -157,8 +157,13 @@ export EDITOR='gvim --nofork'
|
||||||
# ipython shell with correct default apps
|
# ipython shell with correct default apps
|
||||||
alias ipy='ipython -pylab -p scipy --editor="gvim"'
|
alias ipy='ipython -pylab -p scipy --editor="gvim"'
|
||||||
|
|
||||||
# colored gcc output using the colout command
|
# colored cmake/gcc output using the colout command
|
||||||
alias cgcc="colout :[0-9]+: yellow standard | colout error | colout warning magenta | colout pragma green standard"
|
# 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
|
# 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'"
|
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'"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue