diff --git a/bin/qemush b/bin/qemush index e136d07..7dca2db 100755 --- a/bin/qemush +++ b/bin/qemush @@ -18,9 +18,13 @@ bin="${HOME}/bin" images=images PATH="${bin}:${PATH}" EDITOR="${EDITOR:-nvim}" -[ -t 1 ] && alias cat='source-highlight -f esc --style-file=esc.style -i' alias ls='ls --color=auto' alias exec='exec ' +if [ -t 1 ]; then + alias pretty_cat='source-highlight -f esc --style-file=esc.style -i' +else + alias pretty_cat=cat +fi shopt -s expand_aliases umask 027 @@ -106,7 +110,7 @@ public_shell() { } public_cat() { - exec cat "${bin}/${1}" + pretty_cat "${bin}/${1}" } public_add() {