From 900d80710fde89521618956fa11fdee796a0430d Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Mon, 23 Jan 2012 16:59:13 +0900 Subject: [PATCH] Update the document and copyright years. --- LICENSE | 2 +- README.md | 21 ++++++++++++++++++--- manydots-magic | 2 +- 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/LICENSE b/LICENSE index e32c08b..21c3bd5 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2011 Akinori MUSHA +Copyright (c) 2011, 2012 Akinori MUSHA All rights reserved. diff --git a/README.md b/README.md index cf1ac59..56522eb 100644 --- a/README.md +++ b/README.md @@ -27,11 +27,26 @@ command, only if invoked right after the magic happens. % ../.. [Hit <^H>] % ../. +Triple-dot is not a rarely used character sequence, and this tweak +kind of "knows" when it should be expanded. + + % ruby -e '(1.. [Hit <.>] + % ruby -e '(1... + + % git log branch.. [Hit <.>] + % git log branch... + + % git diff .. [Hit <.>] + % git diff ../.. [Hit ] <- This may be a path... + % git diff ...b [Hit ] <- Or not. + % git diff ...branch + How to set up ------------- -Put the file `manydots-magic` somewhere in your `$fpath` and add these -lines to your `.zshrc`: +Put the file `manydots-magic` somewhere in your `$fpath` (typically in +`$ZDOTDIR` which is set to something like `~/.zsh` or `~/.zsh.d`) and +add these lines to your `.zshrc`: autoload -Uz manydots-magic manydots-magic @@ -42,7 +57,7 @@ If you are enabling `url-quote-magic`, make sure to load License ------- -Copyright (c) 2011 Akinori MUSHA +Copyright (c) 2011, 2012 Akinori MUSHA Licensed under the 2-clause BSD license. See `LICENSE` for details. diff --git a/manydots-magic b/manydots-magic index 318fd99..d7976d5 100644 --- a/manydots-magic +++ b/manydots-magic @@ -2,7 +2,7 @@ # # manydots-magic - zle tweak for emulating "..."=="../.." etc. # -# Copyright (c) 2011 Akinori MUSHA +# Copyright (c) 2011, 2012 Akinori MUSHA # Licensed under the 2-clause BSD license. # # This tweek helps input ancestor directories beyond the parent (`..')