CURRENT PROJECTS
loading
# cvs -q up -dP | awk '{a["A"]=32;a["C"]=31;a["M"]=34;a["U"]=37;a["?"]=36;printf("\033[1;%sm%s\033[0;00m\n",a[$1],$0)}'
... for CVS or for SVN:
# svn stat -q | awk '{a["A"]=32;a["C"]=31;a["M"]=34;a["G"]=37;a["D"]=36;printf("\033[1;%sm%s\033[0;00m\n",a[$1],$0)}'
Here's a quick screen of the CVS version's output:
A src/add.cs C src/conflict.cs M src/modified.cs U src/updated.cs ? src/unknown.cs
cvs -q up -dP \ | sed -e "s/^\(\A.*\)$/`printf '\033'`[1;32m\1`printf '\033'`[0;00m/g" \ | sed -e "s/^\(\C.*\)$/`printf '\033'`[1;31m\1`printf '\033'`[0;00m/g" \ | sed -e "s/^\(\M.*\)$/`printf '\033'`[1;34m\1`printf '\033'`[0;00m/g" \ | sed -e "s/^\(\U.*\)$/`printf '\033'`[1;37m\1`printf '\033'`[0;00m/g" \ | sed -e "s/^\(\?.*\)$/`printf '\033'`[1;36m\1`printf '\033'`[0;00m/g"
svn stat -q \ | sed -e "s/^\(\A.*\)$/`printf '\033'`[1;32m\1`printf '\033'`[0;00m/g" \ | sed -e "s/^\(\C.*\)$/`printf '\033'`[1;31m\1`printf '\033'`[0;00m/g" \ | sed -e "s/^\(\M.*\)$/`printf '\033'`[1;34m\1`printf '\033'`[0;00m/g" \ | sed -e "s/^\(\G.*\)$/`printf '\033'`[1;37m\1`printf '\033'`[0;00m/g" \ | sed -e "s/^\(\D.*\)$/`printf '\033'`[1;36m\1`printf '\033'`[0;00m/g"
alias='/usr/local/bin/cu/.sh'... and place the following at the top of the /usr/local/bin/cu/.sh file with +x permissions
#!/bin/sh cvs -q up -dP \ ...

