qemush : bug avec help à cause de l'alias

This commit is contained in:
Hippolyte Chauvin 2023-12-05 12:23:35 +01:00
parent 7efcf393bd
commit 0eb15d5056

View file

@ -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() {