6 lines
374 B
Bash
6 lines
374 B
Bash
if command -v "bat" &>/dev/null; then
|
|
#! alias -g -- h='-h 2>&1 | bat --language=help --style=plain --paging=never --color always' # <--- this is discouraged! This conflicts with posix -h test operator
|
|
alias -g -- --help='--help 2>&1 | bat --language=help --style=plain --paging=never --color always'
|
|
alias cat='bat --style=plain --paging=never --color auto'
|
|
fi
|