From 514c905eae8edef22ed7b92f981bdaeaf71b1ef8 Mon Sep 17 00:00:00 2001 From: Mike Vink Date: Mon, 8 Jan 2024 17:47:39 +0100 Subject: some new stuff --- mut/bin/window | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 mut/bin/window (limited to 'mut/bin') diff --git a/mut/bin/window b/mut/bin/window new file mode 100755 index 0000000..bd40a4c --- /dev/null +++ b/mut/bin/window @@ -0,0 +1,11 @@ +#!/bin/sh +PIPE=/tmp/window-fifo +STDIN="$(cat -)" +rm $PIPE +mkfifo $PIPE +echo "$STDIN" | tee $PIPE >/dev/null & +if command -v st >/dev/null; then + st -e sh -c "<$PIPE ${*}" & +else + tmux splitw sh -c "<$PIPE ${*}" & +fi -- cgit v1.2.3