From 0eb15d505694e1b81d50bd666c92312a5c725f97 Mon Sep 17 00:00:00 2001 From: Hippolyte Chauvin Date: Tue, 5 Dec 2023 12:23:35 +0100 Subject: [PATCH] =?UTF-8?q?qemush=20:=20bug=20avec=20help=20=C3=A0=20cause?= =?UTF-8?q?=20de=20l'alias?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/qemush | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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() {