+function yumupdate
[nethome.git] / .bashrc
diff --git a/.bashrc b/.bashrc
index 848c00b..c79aafb 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -364,6 +364,7 @@ function rpmsrclist
        fi
 }
 function valgrind {(unset valgrind;s=~/.python.valgrind;perl -e 'undef $/;$_=<>;1 while s/^(?:###)?({\n)(?:###)?( *ADDRESS_IN_RANGE.*\n(?:[^}#].*\n)*)###/$1$2/gm;print;' </usr/share/doc/python-devel-2.*/valgrind-python.supp >$s;valgrind --suppressions=$s "$@";);}
+function yumupdate { yum makecache;yum -y update; }
 
 ulimit -S -c 0
 set +H