]> code.delx.au - dotfiles/commitdiff
bash: slowshell function
authorJames Bunton <jamesbunton@delx.net.au>
Sat, 1 Sep 2012 04:29:49 +0000 (14:29 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Sat, 1 Sep 2012 04:29:49 +0000 (14:29 +1000)
.bash/functions

index 3a35c1808ef34b125ea18cda2532e9678de7d1f4..5b597efeec5153aa69d9644430a01518e37daddc 100644 (file)
@@ -72,6 +72,12 @@ function vimf {
        find . -name "${1}" -exec vim '{}' +
 }
 
        find . -name "${1}" -exec vim '{}' +
 }
 
+# Sets the nice and ionice priorities for the current shell to the lowest values
+function slowshell {
+       ionice -c 3 -p $$
+       renice -n 19 -p $$
+}
+
 # Load local functions
 ssource "${HOME}/.bash/functions_local"
 
 # Load local functions
 ssource "${HOME}/.bash/functions_local"