# HG changeset patch # User Jeff Hammel # Date 1368574556 25200 # Node ID 7ed290454f509778d19bd0125a116fdc85e93607 # Parent 266d6b3373737f8d77e5cbbbcb966d9a5558296a random cleanup but not much diff -r 266d6b337373 -r 7ed290454f50 .bashrc --- a/.bashrc Tue May 14 16:26:44 2013 -0700 +++ b/.bashrc Tue May 14 16:35:56 2013 -0700 @@ -94,9 +94,9 @@ git diff $(git merge-base HEAD master) } -# nice fast find function EXCLUDES="(\.svn)|(\.mo$)|(\.po$)|(\.pyc$)|(\.hg$)|(\.git$)" ff() { + # nice fast find function if (( $# < 2 )) then @@ -111,9 +111,11 @@ } chainff() { + # chained fast find + if (( $# < 2 )) then - return 0 + return 1 # bad invocation fi RESULTS=`ff "$2" "$1"` @@ -138,9 +140,9 @@ done } -# contextual fastfind + cff () { - + # contextual fastfind if (( $# < 2 )); then local FILENAME='*' # default -- look in all files else