+Some diff(1) helpers.
authorlace <>
Fri, 18 Aug 2006 09:36:45 +0000 (09:36 +0000)
committerlace <>
Fri, 18 Aug 2006 09:36:45 +0000 (09:36 +0000)
.bashrc
.diffi.list [new file with mode: 0644]

diff --git a/.bashrc b/.bashrc
index 3a68876..27dd64e 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -144,6 +144,7 @@ alias rpmdb='rpm --define "_dbpath `echo /usr/lib/rpmdb/*/*`"'
 alias disass='objdump -D --target=binary --architecture=i386'
 alias cal='cal -m'
 alias vncreadonly='vncviewer -FullColor -Shared -ViewOnly'
+alias diff='diff -u'
 
 # '2>/dev/null' to prevent: unalias: x: not found
 unalias 2>/dev/null cp # -i
@@ -247,6 +248,8 @@ function debuginfo { if test -n "$*";then echo "$*";else cat;fi \
        |xargs rpm -qf|xargs rpmquery --qf '%{SOURCERPM}\n'|sed 's/-[^-]*-[^-]*[.]src[.]rpm$/-debuginfo/'|sort -u; }
 function ipcsrmall { ipcs|awk '/- Shared Memory/{x="-m"}/- Semaphore/{x="-s"}/^0x/{print "ipcrm "x" "$2}'; }
 function eog {(unset eog; touch /tmp/eog.$$;eog "$@" {,,,,,,,,,}/tmp/eog.$$;rm -f /tmp/eog.$$; );}; export -f eog
+function diffc { diff -u "$@"|grep -v '^\(Only in \|Binary files\)'; }; export -f diffc
+function diffi { diffc -X ~/.diffi.list "$@"; }; export -f diffi
 
 ulimit -S -c 0
 set +H
diff --git a/.diffi.list b/.diffi.list
new file mode 100644 (file)
index 0000000..d8549e4
--- /dev/null
@@ -0,0 +1,45 @@
+*~
+*.orig
+*.rej
+core
+core.[0-9]*
+TAGS
+tags
+ID
+.deps
+.libs
+*.[oa]
+*.l[oa]
+*.l[oa]T
+pod2htm[di].tmp
+errs*
+configure
+configure.scan
+config.guess
+config.status
+config.sub
+config.log
+config.cache
+confdefs.h
+conftest*
+autoh[0-9]*
+confcache
+config.rpath
+depcomp
+compile
+stamp-h
+stamp-h.in
+stamp-h1
+install-sh
+aclocal.m4
+autom4te.cache
+autom4te-*.cache
+mkinstalldirs
+libtool
+ltconfig
+ltmain.sh
+macros.dep
+POTFILES*
+*.gmo
+*.mo
+ChangeLog*