+function ulimitme
authorshort <>
Tue, 9 Oct 2001 21:56:27 +0000 (21:56 +0000)
committershort <>
Tue, 9 Oct 2001 21:56:27 +0000 (21:56 +0000)
+function grep

.bashrc

diff --git a/.bashrc b/.bashrc
index 27454ea..1374a6d 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -60,6 +60,8 @@ function cvsupdate  { cvs update "$@" 2>&1|             less; }; export -f cvsup
 function cvsupdatei { cvs update "$@" 2>&1|grep -v '^?'|less; }; export -f cvsupdatei
 
 function wclines { awk '{x[$0]++}END{for (i in x) print x[i]"\t"i}'; }; export -f wclines
+function ulimitme { ulimit -m 100000 -d 150000 -v 200000; }; export -f ulimitme
+eval "function grep { ( ulimitme; `which grep` "'"$@"'"; ); }"; export -f grep
 
 ulimit -c 0