# mandible shell integration for bash.
#
# eval "$(mandible --shell-init bash)" # in ~/.bashrc
#
# Type a tool name, press Ctrl-X m, browse, press Enter: the command you
# selected replaces the line, ready to edit. Quit with q or Ctrl-C and the
# line is left exactly as it was.
#
# Requires bash 4.0 or newer: READLINE_LINE and READLINE_POINT are how a
# `bind -x` function edits the line being typed, and they arrived in 4.0.
# Ctrl-X is readline's own extension prefix, so `\C-xm` takes nothing that
# was already bound. To move it, bind your own key to the same function.
# Bound in both keymaps so a vi-mode user gets it in insert mode too; only
# in an interactive shell, since `bind` has nothing to bind in any other.
if ; then
fi