2 ms·
For this reason I have a zsh function in my .zshrc with bat (which pages by default, if it's longer than your console height): https://github.com/sharkdp/bat#h
by SushiHippie 3y ago
For this reason I have a zsh function in my .zshrc with bat (which pages by default, if it's longer than your console height):
https://github.com/sharkdp/bat#highlighting---help-messages https://github.com/sharkdp/bat#highlighting---help-messages
# in your .bashrc/.zshrc/*rc
alias bathelp='bat --plain --language=help'
help() {
"$@" --help 2>&1 | bathelp
}
This highlights the help output with colors so it looks nicer, works with most help outputs, as it highlights the first part which is the flag/argument in one color and the description in another color