diff --git a/bin/qemush b/bin/qemush index 5b13770..d0258a5 100755 --- a/bin/qemush +++ b/bin/qemush @@ -16,6 +16,11 @@ exec_as qemu "$@" bin=bin images=images +if [ -t 1 ]; then + cat=src-hilite-lesspipe.sh +else + cat=cat +fi PATH="./${bin}:${PATH}" EDITOR="${EDITOR:-nvim}" @@ -101,6 +106,10 @@ public_shell() { bash -i } +public_cat() { + "$cat" "${bin}/${1}" +} + function="$1" shift