summaryrefslogtreecommitdiff
path: root/gemfeed/examples/conf/dotfiles/scripts/hx.hexai-prompt
diff options
context:
space:
mode:
Diffstat (limited to 'gemfeed/examples/conf/dotfiles/scripts/hx.hexai-prompt')
-rwxr-xr-xgemfeed/examples/conf/dotfiles/scripts/hx.hexai-prompt9
1 files changed, 9 insertions, 0 deletions
diff --git a/gemfeed/examples/conf/dotfiles/scripts/hx.hexai-prompt b/gemfeed/examples/conf/dotfiles/scripts/hx.hexai-prompt
new file mode 100755
index 00000000..ef413c0a
--- /dev/null
+++ b/gemfeed/examples/conf/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