From aeca924b0339bff37b9dc26569fb46993455bde3 Mon Sep 17 00:00:00 2001 From: Akemi Izuko Date: Sat, 23 Dec 2023 20:14:08 -0700 Subject: [PATCH] Fix: bash function man --- bash/.bash_functions | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bash/.bash_functions b/bash/.bash_functions index 1a3a83f..aafb209 100644 --- a/bash/.bash_functions +++ b/bash/.bash_functions @@ -55,7 +55,7 @@ sww() { # Proper manpages =================================================== man() { - local command="$1" + local command=$(IFS=-, ; echo "$*") if [[ "$command" =~ \. ]]; then ~/.configs_pointer/bin/man_py.sh "$command" @@ -63,6 +63,8 @@ man() { /usr/bin/man "$command" elif command -v "$command" &>/dev/null; then "$command" --help | nvim -R -c 'set syn=man' -- + elif command -v "$@" &>/dev/null; then + "$@" --help | nvim -R -c 'set syn=man' -- else echo "Error: No man page for \`$command\`" fi