2 ms·
Pure man(3) solution proposed here is very nice, but I usually just: vim ~/doc/nginx-snippets.txt # edit vim ~/doc/nginx-snippets.txt # consult I actually
by wruza 8y ago
Pure man(3) solution proposed here is very nice, but I usually just:
vim ~/doc/nginx-snippets.txt # edit
vim ~/doc/nginx-snippets.txt # consult
I actually have more files, config samples and source code templates, so it’s not just ~/doc/.txt, but having them all in man registry would require yet another better apropos(3) replacement. I also have my own vim colors format that is much better looking to me than md^. I know that my argument may turn similar to ‘dropbox is easy via ftp mount’, but I can’t see any need for a tool even for my relatively big snippet-base. Moreover, with vim I can gf, grep -r, edit :w, etc. And with just files it is subject to svn/sh/make, unleashing the full power of unix. --
^ just two levels of section headers, and :tags, all readable without color. Based on dead-simple regexps, so in theory I could |sed them into terminal escapes in five minutes.