summaryrefslogtreecommitdiff
path: root/gemfeed/examples/conf/dotfiles/scripts/hx.aichat-prompt
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-10-02 11:28:53 +0300
committerPaul Buetow <paul@buetow.org>2025-10-02 11:28:53 +0300
commitc0f9ecf5e0b075db8e54ef1235ec80878e418398 (patch)
treed729aef5835fdfa173277c4189342976e33c6446 /gemfeed/examples/conf/dotfiles/scripts/hx.aichat-prompt
parenta96adfd84d903c50d75c8771cdcc78dd5e942618 (diff)
Update content for html
Diffstat (limited to 'gemfeed/examples/conf/dotfiles/scripts/hx.aichat-prompt')
-rwxr-xr-xgemfeed/examples/conf/dotfiles/scripts/hx.aichat-prompt9
1 files changed, 9 insertions, 0 deletions
diff --git a/gemfeed/examples/conf/dotfiles/scripts/hx.aichat-prompt b/gemfeed/examples/conf/dotfiles/scripts/hx.aichat-prompt
new file mode 100755
index 00000000..4cafcf5d
--- /dev/null
+++ b/gemfeed/examples/conf/dotfiles/scripts/hx.aichat-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
+ aichat "$(hx.prompt). $INSTRUCTIONS"
+else
+ aichat "$@. $INSTRUCTIONS"
+fi