From eef65125802e1535c49099a592b6e8bbd8a38276 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 7 Sep 2025 14:46:25 +0300 Subject: restore --- dotfiles/scripts/hx.hexai-prompt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 dotfiles/scripts/hx.hexai-prompt diff --git a/dotfiles/scripts/hx.hexai-prompt b/dotfiles/scripts/hx.hexai-prompt new file mode 100755 index 0000000..ef413c0 --- /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" 2>/dev/null +else + hexai "$@. $INSTRUCTIONS" 2>/dev/null +fi -- cgit v1.2.3