diff options
author | Teddy Wing | 2021-08-29 18:42:57 +0200 |
---|---|---|
committer | Teddy Wing | 2021-08-29 18:42:57 +0200 |
commit | 5ad6ae0b340c31d602ccf6fd2f75f09e8493a895 (patch) | |
tree | 0cd62aec5e00ea89332fd2dcfabe774d733761f5 | |
parent | e83dfae779d525bb2428a66da9989641e3f909a1 (diff) | |
download | homebrew-formulae-5ad6ae0b340c31d602ccf6fd2f75f09e8493a895.tar.bz2 |
readline-incdec 0.0.1
-rw-r--r-- | HomebrewFormula/readline-incdec.rb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/HomebrewFormula/readline-incdec.rb b/HomebrewFormula/readline-incdec.rb new file mode 100644 index 0000000..57c6a8a --- /dev/null +++ b/HomebrewFormula/readline-incdec.rb @@ -0,0 +1,28 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + +class ReadlineIncdec < Formula + desc "Readline bindings to increment and decrement numbers on the command line" + homepage "https://github.com/teddywing/readline-incdec" + url "https://github.com/teddywing/readline-incdec/archive/refs/tags/v0.0.1.tar.gz" + sha256 "e9e28ca126cda963ad8a0792a18e5119884137f60586e700bc7da74bce20e413" + + def install + prefix.install "incdec.bash", "incdec-bindings.bash" + man7.install "doc/incdec.7" + end + + def caveats + <<~EOS + The Incdec shell functions must be sourced in order to use them. + Add the following line to your Bash profile: + + source #{opt_prefix}/incdec.bash + + To enable the default bindings, also add: + + source #{opt_prefix}/incdec-bindings.bash + EOS + end +end |