qemush : fonction cat

This commit is contained in:
Hippolyte Chauvin 2023-11-29 14:57:46 +01:00
parent 1d3d68926b
commit 9881409b40

View file

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