about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--.config/zsh/utils.zsh4
1 files changed, 1 insertions, 3 deletions
diff --git a/.config/zsh/utils.zsh b/.config/zsh/utils.zsh
index b1ce7a2..38791e0 100644
--- a/.config/zsh/utils.zsh
+++ b/.config/zsh/utils.zsh
@@ -23,9 +23,7 @@ fi
 
 if has bat; then
 	alias cat='bat --plain --paging=never'
-	# another with --show-all?
-	export MANPAGER="sh -c 'col -bx | bat --plain --language man'"
-	export MANROFFROPT='-c'
+	export MANPAGER="sh -c 'sed --unbuffered --expression \"s/\\x1B\[[0-9;]*m//g; s/.\\x08//g\" | bat --plain --language man'"
 fi
 
 if has eza; then