summary refs log tree commit diff
path: root/dot_local/share/zsh/coloured-man
diff options
context:
space:
mode:
authorAlen <alen@dotfiles.xyz>2025-01-19 03:26:44 +0400
committerAlen <alen@dotfiles.xyz>2025-01-19 03:26:44 +0400
commit43c982798c902315aba2f8865d0407c6ff70a180 (patch)
tree469de00c188d60d2859066cfa94bf2880b16eb46 /dot_local/share/zsh/coloured-man
parent6e8b63f101e056f80cf6b7d17d07161bead1ceeb (diff)
Add batch of zsh plugins and kitting out
Diffstat (limited to 'dot_local/share/zsh/coloured-man')
-rw-r--r--dot_local/share/zsh/coloured-man/coloured-man.plugin.zsh13
1 files changed, 13 insertions, 0 deletions
diff --git a/dot_local/share/zsh/coloured-man/coloured-man.plugin.zsh b/dot_local/share/zsh/coloured-man/coloured-man.plugin.zsh
new file mode 100644
index 0000000..ddaa38b
--- /dev/null
+++ b/dot_local/share/zsh/coloured-man/coloured-man.plugin.zsh
@@ -0,0 +1,13 @@
+function man() {
+    # mb/md - bold+blinking
+    # so - standout
+    # us - underliined
+    LESS_TERMCAP_mb="${fg_bold[red]}" \
+    LESS_TERMCAP_md="${fg_bold[red]}" \
+    LESS_TERMCAP_me="${reset_color}" \
+    LESS_TERMCAP_so="${fg_bold[yellow]}${bg[blue]}" \
+    LESS_TERMCAP_se="${reset_color}" \
+    LESS_TERMCAP_us="${fg_bold[green]}" \
+    LESS_TERMCAP_ue="${reset_color}" \
+    command env man "$@"
+}
\ No newline at end of file