From f408ae894e4e10bbf4358c7c07bb9618ef1353e4 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 7 Feb 2026 23:46:42 +0200 Subject: rename --- scripts/hx.prompt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 scripts/hx.prompt (limited to 'scripts/hx.prompt') 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" -- cgit v1.2.3