From ff0ec15e065957a0da197711f6e3adfb9992325a Mon Sep 17 00:00:00 2001 From: sigoden Date: Mon, 26 Feb 2024 11:28:25 +0800 Subject: feat: add shell integration (#323) --- scripts/integration.fish | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 scripts/integration.fish (limited to 'scripts/integration.fish') diff --git a/scripts/integration.fish b/scripts/integration.fish new file mode 100644 index 0000000..2d4dfb9 --- /dev/null +++ b/scripts/integration.fish @@ -0,0 +1,9 @@ +function _aichat_fish + set -l _old (commandline) + if test -n $_old + echo -n "⌛" + commandline -f repaint + commandline (aichat -e $_old) + end +end +bind \ee _aichat_fish \ No newline at end of file -- cgit v1.2.3