↳
In-reply-to
»
π‘ Pro zs Tip: Need a way to include "dynamic" content or other files? Here's a simple "include" plugin you can use:
β€ Read More
Apparently I canβt write shell scripts very well late at night π€¦ββοΈ Hereβs the fixed include
plugin for zs:
#!/bin/sh
if [ ! $# = 1 ]; then
printf "Usage: %s <file>\n" "$(basename "$0")"
exit 0
fi
if [ -f "$1" ]; then
cat "$1"
else
echo "error: file not found $1"
fi
Sorry π