Mercurial > hg > config
comparison .bashrc @ 331:133eb1ade1dd
documentation
| author | Jeff Hammel <jhammel@mozilla.com> |
|---|---|
| date | Mon, 17 Jun 2013 22:22:05 -0700 |
| parents | 0da3813d76d0 |
| children | d0f91aad5f84 |
comparison
equal
deleted
inserted
replaced
| 330:0da3813d76d0 | 331:133eb1ade1dd |
|---|---|
| 55 ### functions | 55 ### functions |
| 56 | 56 |
| 57 apply-patch() { | 57 apply-patch() { |
| 58 # apply a patch | 58 # apply a patch |
| 59 # TODO: | 59 # TODO: |
| 60 # - rewrite in python! | |
| 60 # - extract this general pattern as a bash "decorator" like `lsdiff` in .bash_overrides | 61 # - extract this general pattern as a bash "decorator" like `lsdiff` in .bash_overrides |
| 61 # - right now level=1; make this configurable (somehow) | 62 # - right now level=1; make this configurable (somehow) |
| 63 | |
| 62 if (( ! $# )) | 64 if (( ! $# )) |
| 63 then | 65 then |
| 64 echo "No patch supplied" | 66 echo "No patch supplied" |
| 65 return 1 | 67 return 1 |
| 66 fi | 68 fi |
