+function ignores{,all}{,rm}
[nethome.git] / .bashrc
diff --git a/.bashrc b/.bashrc
index daf69ee..e318e7a 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -146,6 +146,10 @@ eval '
        function cvsignoresallrm { cvsutil --ignores --workings --rm "$@"; }
        function svnignoresall { svn status |sed -n "s/^[?]      //p" "$@"; }
        function svnignoresallrm { svn status |sed -n "s/^[?]      //p"|tr "\n" "\0"|xargs -0 rm -rf "$@"; }
+       function ignores { find -name "*.orig" -o -name ".#*" -o -name "*~" "$@"; }
+       function ignoresrm { ignores "$@" | xargs rm -f; }
+       function ignoresall { ignores -o -name "*.rej" "$@"; }
+       function ignoresallrm { ignoresall "$@" | xargs rm -f; }
        function disass { objdump -D --target=binary --architecture=i386 "$@"; }
        function cal {(unset cal; ( cal -m "$@"; ); );}
        function vncreadonly { vncviewer -FullColor -Shared -ViewOnly "$@"; }