diff .bash_overrides @ 305:fac01a1bcedf

add an apply-patch function
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 14 May 2013 18:29:24 -0700
parents 1a177f9b51d4
children 597455a28c49
line wrap: on
line diff
--- a/.bash_overrides	Tue May 14 16:35:56 2013 -0700
+++ b/.bash_overrides	Tue May 14 18:29:24 2013 -0700
@@ -1,5 +1,6 @@
 #!/bin/bash
-# command overrides too elaborate for aliases
+
+### command overrides too elaborate for aliases
 
 cd() {
 
@@ -73,7 +74,8 @@
 
     if (( ! $# ))
     then
-	return
+	command find
+        return
     fi
 
     if [ -d $1 ]
@@ -96,7 +98,7 @@
 }
 
 function lsdiff {
-
+    # TODO: extract this general pattern as a bash "decorator"
     if expr "$1" : 'http[s]\?://.*' &> /dev/null
     then
         curl --location "$1" 2> /dev/null | command lsdiff