diff options
-rw-r--r-- | README.markdown | 2 | ||||
-rw-r--r-- | sh/shrc.d/diff.sh | 16 | ||||
-rw-r--r-- | sh/shrc.d/rcsdiff.sh | 4 |
3 files changed, 0 insertions, 22 deletions
diff --git a/README.markdown b/README.markdown index b1eeec10..4d76f1e1 100644 --- a/README.markdown +++ b/README.markdown @@ -171,7 +171,6 @@ in `sh/shrc.d` to be loaded by any POSIX interactive shell. Those include: Zsh `cd` builtin that I like. * `bc()` silences startup messages from GNU `bc(1)`. * `bd()` changes into a named ancestor of the current directory. -* `diff()` forces the unified format for `diff(1)`. * `ed()` tries to get verbose error messages, a prompt, and a Readline environment for `ed(1)`. * `env()` sorts the output of `env(1)` if it was invoked with no arguments, @@ -192,7 +191,6 @@ in `sh/shrc.d` to be loaded by any POSIX interactive shell. Those include: * `path()` manages the contents of `PATH` conveniently. * `pd()` changes to the argument's parent directory. * `pwgen()` generates just one decent password with `pwgen(1)`. -* `rcsdiff()` forces a unified format for `rcsdiff(1)`. * `rd()` replaces the first instance of its first argument with its second argument in `$PWD`, emulating a feature of the Zsh `cd` builtin that I like. 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 "$@" -} |