+function n
authorlace <>
Thu, 8 Jan 2009 12:12:17 +0000 (12:12 +0000)
committerlace <>
Thu, 8 Jan 2009 12:12:17 +0000 (12:12 +0000)
.bashrc

diff --git a/.bashrc b/.bashrc
index 90c5518..701f11e 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -320,6 +320,7 @@ function gdbcvscheckout {(set -ex
        );}
 function uri_escape   { perl -MURI::Escape -le '$_=<>;chomp;print uri_escape   $_;'; };
 function uri_unescape { perl -MURI::Escape -le '$_=<>;chomp;print uri_unescape $_;'; };
+function n { if [ "$1" = "-p" ];then renice +19 "$@";ionice -c3 "$@";else nice -n19 ionice -c3 "$@";fi };
 
 ulimit -S -c 0
 set +H