Mercurial > hg > config
comparison .bash_overrides @ 312:597455a28c49
utilize command
| author | Jeff Hammel <jhammel@mozilla.com> |
|---|---|
| date | Thu, 23 May 2013 18:48:04 -0700 |
| parents | fac01a1bcedf |
| children | 5bee5c55a7a0 |
comparison
equal
deleted
inserted
replaced
| 311:a25eb7e42889 | 312:597455a28c49 |
|---|---|
| 101 # TODO: extract this general pattern as a bash "decorator" | 101 # TODO: extract this general pattern as a bash "decorator" |
| 102 if expr "$1" : 'http[s]\?://.*' &> /dev/null | 102 if expr "$1" : 'http[s]\?://.*' &> /dev/null |
| 103 then | 103 then |
| 104 curl --location "$1" 2> /dev/null | command lsdiff | 104 curl --location "$1" 2> /dev/null | command lsdiff |
| 105 else | 105 else |
| 106 lsdiff "$1" | 106 command lsdiff "$@" |
| 107 fi | 107 fi |
| 108 | 108 |
| 109 } | 109 } |
| 110 | 110 |
| 111 function unlink { | 111 function unlink { |
