zshrc: comment the -h alias of bat's, too much headache compared to worth

when I say -h, I generally mean human readable, not that I want help for du and df neither of which understands this alias
This commit is contained in:
Aminda Suomalainen 2026-01-06 11:57:26 +02:00
parent a55dbe9caa
commit 22ffef4a1f
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723

View File

@ -687,7 +687,7 @@ if ! hash btraceback 2> /dev/null; then
alias less="bat --paging=always"
export MANPAGER="sh -c 'sed -u -e \"s/\\x1B\[[0-9;]*m//g; s/.\\x08//g\" | bat -p -lman'"
# zsh only! not bash!
alias -g -- -h='-h 2>&1 | bat --language=help --style=plain'
#alias -g -- -h='-h 2>&1 | bat --language=help --style=plain'
alias -g -- --help='--help 2>&1 | bat --language=help --style=plain'
fi
if hash rg 2> /dev/null; then