summaryrefslogtreecommitdiff
path: root/scripts/hx.prompt
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-07 23:46:42 +0200
committerPaul Buetow <paul@buetow.org>2026-02-07 23:46:42 +0200
commitf408ae894e4e10bbf4358c7c07bb9618ef1353e4 (patch)
tree0722f09473a58f1b9027e271cd6bd0e96e7a390d /scripts/hx.prompt
parentbf56ef64278a90acab9116311e649e762d39cd34 (diff)
rename
Diffstat (limited to 'scripts/hx.prompt')
-rwxr-xr-xscripts/hx.prompt14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/hx.prompt b/scripts/hx.prompt
new file mode 100755
index 0000000..8dd14dd
--- /dev/null
+++ b/scripts/hx.prompt
@@ -0,0 +1,14 @@
+#!/usr/bin/env zsh
+
+declare -r REPLY_FILE=~/.hx-prompt-reply
+if [ -f "$REPLY_FILE" ]; then
+ rm "$REPLY_FILE"
+fi
+
+tmux split-window -v "touch $REPLY_FILE.tmp; hx $REPLY_FILE.tmp; mv $REPLY_FILE.tmp $REPLY_FILE"
+
+while [ ! -f "$REPLY_FILE" ]; do
+ sleep 0.2
+done
+
+cat "$REPLY_FILE"