diff --git a/init.zsh b/init.zsh index 641e2c5..8b907d9 100644 --- a/init.zsh +++ b/init.zsh @@ -170,7 +170,7 @@ if ! [[ -z "${bat_exec}" ]]; then alias ncat="${bat_exec} -pp --color=never" # Bat as man pager - if [[ "${bat_exec}" = */bat ]]; then + if [[ "${bat_exec}" = (bat|*/bat) ]]; then export MANPAGER="zsh -c 'col -bx | ${bat_exec} -l man --paging=always --style=plain'" export MANROFFOPT="-c" fi