diff options
| -rw-r--r-- | README.md | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -23,7 +23,14 @@ manually. By default: ## Install -TODO +Mac OS X users can install with Homebrew: + + $ brew install teddywing/formulae/readline-incdec + +On other platforms, download the `incdec.bash` and, if desired, +`incdec-bindings.bash` files. + +Then source the script in your Bash RC file: source /path/to/incdec.bash @@ -31,11 +38,13 @@ To enable the default bindings, also add: source /path/to/incdec-bindings.bash - +Custom bindings can be added in place of the defaults. For example, this defines +bindings for `C-x -` and `C-x +`: bind -x '"\C-x-": __readline_incdec_decrement' bind -x '"\C-x+": __readline_incdec_increment' + ## License Copyright © 2021 Teddy Wing. Licensed under the GNU GPLv3+ (see the included COPYING file). |
