aichat/scripts/shell-integration/integration.bash
2024-03-02 08:07:06 +00:00

7 lines
187 B
Bash

_aichat_bash() {
if [[ -n "$READLINE_LINE" ]]; then
READLINE_LINE=$(aichat -e "$READLINE_LINE")
READLINE_POINT=${#READLINE_LINE}
fi
}
bind -x '"\ee": _aichat_bash'