AutoYADM commit: 2025-07-07 13:33:13

This commit is contained in:
Daniel Fichtinger 2025-07-07 13:33:13 -04:00
parent 14a67d0ca4
commit c9bd35b3c2

25
.config/kak/scripts/kakpipe.sh Executable file
View file

@ -0,0 +1,25 @@
#!/bin/sh
# check for filter string
while getopts "f:" opt; do
case "$opt" in
f)
filter="$OPTARG"
;;
\?)
echo "Invalid option"
exit 1
;;
esac
done
if [ -z "$filter" ]; then
echo "No filter!"
exit 1
fi
tempdir="$(mktemp -d kakpipe-XXXXXX)"
fifo="${tempdir}/fifo"
# cleanup
rm -r "$tempdir"