diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-19 13:38:50 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-19 13:40:03 +1300 |
commit | cbe3903157a0491588c49f20ba35948c9c50a0d7 (patch) | |
tree | 4b6fe2033f8a160b96d244d4aa8346a51a986c0d /sh/shrc.d | |
parent | Make diff default even more conservative (diff) | |
download | dotfiles-cbe3903157a0491588c49f20ba35948c9c50a0d7.tar.gz dotfiles-cbe3903157a0491588c49f20ba35948c9c50a0d7.zip |
Remove diff()/rcsdiff() function wrappers
More trouble than they're worth, and looking at my shell history it
looks like I type out the -u all the time anyway
Diffstat (limited to 'sh/shrc.d')
-rw-r--r-- | sh/shrc.d/diff.sh | 16 | ||||
-rw-r--r-- | sh/shrc.d/rcsdiff.sh | 4 |
2 files changed, 0 insertions, 20 deletions
diff --git a/sh/shrc.d/diff.sh b/sh/shrc.d/diff.sh deleted file mode 100644 index 9ba2f983..00000000 --- a/sh/shrc.d/diff.sh +++ /dev/null @@ -1,16 +0,0 @@ -# Use a unified format for diff(1) by default if two files and no options given -diff() { - if ( - for arg ; do - case $arg in - --) shift ; break ;; - -*) return 1 ;; - *) break ;; - esac - done - [ "$#" -eq 2 ] - ) ; then - set -- -u "$@" - fi - command diff "$@" -} diff --git a/sh/shrc.d/rcsdiff.sh b/sh/shrc.d/rcsdiff.sh deleted file mode 100644 index 18b1d324..00000000 --- a/sh/shrc.d/rcsdiff.sh +++ /dev/null @@ -1,4 +0,0 @@ -# Use a unified format for rcsdiff(1) by default -rcsdiff() { - command rcsdiff -u "$@" -} |