From a5ff7a1b797076ae1235977eae56f1896d0fec99 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 20 Aug 2025 08:36:14 +0300 Subject: add hexai prompt --- dotfiles/scripts/ai | 2 +- dotfiles/scripts/hx.hexai-prompt | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100755 dotfiles/scripts/hx.hexai-prompt diff --git a/dotfiles/scripts/ai b/dotfiles/scripts/ai index 7515659..abcf490 100755 --- a/dotfiles/scripts/ai +++ b/dotfiles/scripts/ai @@ -3,5 +3,5 @@ if [ $(uname) = Darwin ]; then exec hx.nvim-copilot-prompt "$@" else - exec hx.aichat-prompt "$@" + exec hx.hexai-prompt "$@" fi diff --git a/dotfiles/scripts/hx.hexai-prompt b/dotfiles/scripts/hx.hexai-prompt new file mode 100755 index 0000000..358b64a --- /dev/null +++ b/dotfiles/scripts/hx.hexai-prompt @@ -0,0 +1,9 @@ +#!/usr/bin/env zsh + +declare -xr INSTRUCTIONS='Answer only. If it is code, code only without code-block at the beginning and the end.' + +if [[ $# -eq 0 ]]; then + hexai "$(hx.prompt). $INSTRUCTIONS" +else + hexai "$@. $INSTRUCTIONS" +fi -- cgit v1.2.3