From d698e20eb04b1b987ea9acbf30e9aaaa8aa3616b Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Thu, 27 Apr 2023 14:54:02 -0400 Subject: [PATCH] Use man-db instead of default macos man program --- emacs/.emacs.d/config/init-defaults.el | 3 ++- homebrew/Brewfile | 1 + launchd/Library/LaunchAgents/mandb.plist | 14 ++++++++++++++ zsh/.zshrc | 4 ++++ 4 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 launchd/Library/LaunchAgents/mandb.plist diff --git a/emacs/.emacs.d/config/init-defaults.el b/emacs/.emacs.d/config/init-defaults.el index 5cc09e3..e5437d0 100644 --- a/emacs/.emacs.d/config/init-defaults.el +++ b/emacs/.emacs.d/config/init-defaults.el @@ -19,7 +19,8 @@ display-buffer-alist '((".*" (display-buffer-reuse-window display-buffer-same-window) (reusable-frames . t))) - even-window-sizes nil) + even-window-sizes nil + manual-program "gman") (setq-default indent-tabs-mode nil) ;; Always display line numbers in text/programming modes diff --git a/homebrew/Brewfile b/homebrew/Brewfile index 9dde8ba..4ee4859 100644 --- a/homebrew/Brewfile +++ b/homebrew/Brewfile @@ -18,6 +18,7 @@ brew "jdtls" brew "jq" brew "kubectx" brew "llvm" +brew "man-db" brew "maven" brew "metals" brew "msmtp" diff --git a/launchd/Library/LaunchAgents/mandb.plist b/launchd/Library/LaunchAgents/mandb.plist new file mode 100644 index 0000000..62b5167 --- /dev/null +++ b/launchd/Library/LaunchAgents/mandb.plist @@ -0,0 +1,14 @@ + + + + + Label + local.jdormit.mandb + ProgramArguments + + /opt/homebrew/bin/mandb + + StartInterval + 300 + + diff --git a/zsh/.zshrc b/zsh/.zshrc index 923264d..0372be2 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -115,6 +115,10 @@ alias kns="kubens" alias kctx="kubectx" alias tf="terraform" +if type gman &>/dev/null; then + alias man="gman" +fi + # zsh-completions homebrew package if type brew &>/dev/null; then FPATH=$(brew --prefix)/share/zsh-completions:$FPATH