From: lace <> Date: Mon, 22 Sep 2008 23:19:27 +0000 (+0000) Subject: +function ignores{,all}{,rm} X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=commitdiff_plain;h=e7eb1fdabcbcebf79f9eb5fa9d62a4120b33d91e +function ignores{,all}{,rm} --- diff --git a/.bashrc b/.bashrc index daf69ee..e318e7a 100644 --- 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 "$@"; }