From 17ef6a23e5b7a2e1bb9fd50b663e7d16a41506aa Mon Sep 17 00:00:00 2001 From: druckdev Date: Wed, 10 Mar 2021 13:35:33 +0100 Subject: [PATCH] zsh:functions:nvim-man: Use portable flag for man The macos version of man does not have the long versions of the flags. --- .config/zsh/zshrc.d/40-functions.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/zsh/zshrc.d/40-functions.zsh b/.config/zsh/zshrc.d/40-functions.zsh index 218e328..af9842b 100644 --- a/.config/zsh/zshrc.d/40-functions.zsh +++ b/.config/zsh/zshrc.d/40-functions.zsh @@ -375,7 +375,7 @@ git-commit-last-msg() { nvim-man() { # Check for existence of man page. Assume that the page was specified as the # last argument. - command man --where "${@[$#]}" >/dev/null || return + command man -w "${@[$#]}" >/dev/null || return if (( $+commands[nvim] )) && [[ $# -eq 1 ]]; then # $MANPAGER does the trick too but lines are hard-wrapped.