feat(tricks): auto-create fish-config.1 symlink on shell start
The symlink from ~/.local/share/man/man1/fish-config.1 to docs/fish-config.1 is now created automatically alongside the existing MANPATH setup, making `man fish-config` work out of the box on any machine after cloning. Simplified docs accordingly.
This commit is contained in:
+6
-6
@@ -1231,16 +1231,16 @@ navigation.
|
||||
|
||||
bat --language=markdown --paging=always ~/.config/fish/docs/fish-config.md
|
||||
|
||||
## As a man page (if compiled)
|
||||
## As a man page
|
||||
|
||||
man -l ~/.config/fish/docs/fish-config.1
|
||||
|
||||
If ~/.local/share/man is on your MANPATH (set automatically by
|
||||
conf.d/tricks.fish) and ~/.local/share/man/man1/fish-config.1 is
|
||||
symlinked to docs/fish-config.1, you can also use:
|
||||
The symlink and MANPATH are configured automatically on shell start:
|
||||
|
||||
man fish-config
|
||||
|
||||
Or read the compiled file directly:
|
||||
|
||||
man -l ~/.config/fish/docs/fish-config.1
|
||||
|
||||
NOTE: fish-config (hyphen) is this config's man page. fish_config
|
||||
(underscore) is fish's built-in browser-based configuration tool —
|
||||
a completely separate command. Do not mix them up.
|
||||
|
||||
Reference in New Issue
Block a user