feat(manpath): expose user-local man pages for man fish-config
Adds ~/.local/share/man to MANPATH so the generated fish-config.1 (symlinked from docs/) is accessible via `man fish-config`.
This commit is contained in:
@@ -17,6 +17,11 @@ end
|
|||||||
fish_add_path ~/.local/bin
|
fish_add_path ~/.local/bin
|
||||||
fish_add_path ~/Applications/depot_tools
|
fish_add_path ~/Applications/depot_tools
|
||||||
|
|
||||||
|
# Expose user-local man pages (e.g. fish-config.1 symlinked from docs/)
|
||||||
|
if not contains ~/.local/share/man $MANPATH
|
||||||
|
set -gx MANPATH ~/.local/share/man $MANPATH
|
||||||
|
end
|
||||||
|
|
||||||
# Format man pages using bat (only if bat is installed)
|
# Format man pages using bat (only if bat is installed)
|
||||||
if type -q bat
|
if type -q bat
|
||||||
set -gx MANROFFOPT -c
|
set -gx MANROFFOPT -c
|
||||||
|
|||||||
Reference in New Issue
Block a user