From d275c33632271bf9cdbc01ef005deb9ff851370b Mon Sep 17 00:00:00 2001 From: sigoden Date: Sat, 2 Mar 2024 08:07:06 +0000 Subject: chore: move integration scripts --- scripts/shell-integration/integration.bash | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 scripts/shell-integration/integration.bash (limited to 'scripts/shell-integration/integration.bash') diff --git a/scripts/shell-integration/integration.bash b/scripts/shell-integration/integration.bash new file mode 100644 index 0000000..572c7be --- /dev/null +++ b/scripts/shell-integration/integration.bash @@ -0,0 +1,7 @@ +_aichat_bash() { + if [[ -n "$READLINE_LINE" ]]; then + READLINE_LINE=$(aichat -e "$READLINE_LINE") + READLINE_POINT=${#READLINE_LINE} + fi +} +bind -x '"\ee": _aichat_bash' \ No newline at end of file -- cgit v1.2.3