From 98f07f8d1355edc64d99f4dc08ee3cbca203e316 Mon Sep 17 00:00:00 2001 From: Akemi Izuko Date: Sat, 14 Jan 2023 21:50:50 -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