diff --git a/bin/qemush b/bin/qemush index b1ce775..92eb503 100755 --- a/bin/qemush +++ b/bin/qemush @@ -16,13 +16,9 @@ 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}" +[ -t 1 ] && alias cat='source-highlight -o STDOUT -f esc' alias ls='ls --color=auto' alias exec='exec ' shopt -s expand_aliases @@ -109,7 +105,7 @@ public_shell() { } public_cat() { - exec "$cat" "${bin}/${1}" + exec cat "${bin}/${1}" } function="$1"