blog.1 | ||
blog.1.md | ||
cheatsheet.7 | ||
cheatsheet.7.md | ||
LICENSE | ||
README.md |
Personal man page
This repo is for my personal man page. It uses pandoc
to process markdown into a manpage. See https://gabmus.org/posts/man_pages_with_markdown_and_pandoc
-
create a markdown file for the manpage. We save it in section 7: Miscellaneous Information Manual, so it needs to be named
[name].7.md
. -
create a file in man page format using pandoc:
pandoc --standalone -t man cheatsheet.7.md -o cheatsheet.7
-
Then symlink to the appropriate man file directory:
ln -s /Users/hugh/coding/man/cheatsheet.7 /usr/local/share/man/man7/
Now you can run man cheatsheet
and see your man page!