commit a3c96e08e2ba8b55edaa9b63662c8212622bd2af parent 59cede289a62a7243b7538345f4a674c9edafe39 Author: hhvn <dev@haydenvh.com> Date: Sun, 7 Mar 2021 23:55:14 +0000 .config/ksh/man .config/man.conf .config/git/man/ .scripts/man: add manpages .config/man.conf gets variables from .config/ksh/man Diffstat:
A | .config/ksh/man | | | 9 | +++++++++ |
A | .config/man.conf | | | 8 | ++++++++ |
2 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/.config/ksh/man b/.config/ksh/man @@ -0,0 +1,9 @@ +#!/bin/ksh + +mantmp(){ + sed "s~HOME~$HOME~g" < $HOME/.config/man.conf > /tmp/man.conf +} + +alias man="mantmp; \man -C /tmp/man.conf" +alias apropos="mantmp; \apropos -C /tmp/man.conf" +alias makewhatis="mantmp; \makewhatis -C /tmp/man.conf" diff --git a/.config/man.conf b/.config/man.conf @@ -0,0 +1,8 @@ +# defaults +manpath /usr/local/share/man +manpath /usr/share/man +manpath /usr/X11R6/man + +# hhvn's dotfiles +manpath HOME/.scripts/man/ +manpath HOME/.config/git/man