diff options
| -rw-r--r-- | incdec | 3 | ||||
| -rw-r--r-- | incdec-bindings.bash | 20 | ||||
| -rw-r--r-- | incdec.m4.bash | 3 |
3 files changed, 20 insertions, 6 deletions
@@ -102,6 +102,3 @@ function __readline_incdec_decrement { READLINE_POINT="$(($READLINE_POINT + 1))" fi } - -bind -x '"\C-xx": __readline_incdec_decrement' -bind -x '"\C-xa": __readline_incdec_increment' diff --git a/incdec-bindings.bash b/incdec-bindings.bash new file mode 100644 index 0000000..f86cb4d --- /dev/null +++ b/incdec-bindings.bash @@ -0,0 +1,20 @@ +# Copyright (c) 2021 Teddy Wing +# +# This file is part of Incdec. +# +# Incdec is free software: you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# Incdec is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Incdec. If not, see <https://www.gnu.org/licenses/>. + + +bind -x '"\C-xx": __readline_incdec_decrement' +bind -x '"\C-xa": __readline_incdec_increment' diff --git a/incdec.m4.bash b/incdec.m4.bash index f7930cf..388b773 100644 --- a/incdec.m4.bash +++ b/incdec.m4.bash @@ -61,6 +61,3 @@ function __readline_incdec_decrement { READLINE_POINT="$(($READLINE_POINT + 1))" fi } - -bind -x '"\C-xx": __readline_incdec_decrement' -bind -x '"\C-xa": __readline_incdec_increment' |
