diff options
| author | Paul Buetow <paul@buetow.org> | 2025-09-07 14:46:25 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-09-07 14:46:25 +0300 |
| commit | eef65125802e1535c49099a592b6e8bbd8a38276 (patch) | |
| tree | 13b342934b9d8a3181ae22c8118206688e5dc3e1 | |
| parent | a704b29c75847c926eb83a706602b66ec66f4fe1 (diff) | |
restore
| -rwxr-xr-x | dotfiles/scripts/hx.hexai-prompt | 9 |
1 files changed, 9 insertions, 0 deletions
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 |
