From 4047aad29e43a6d4ff5d0aa9c179402a259b06ce Mon Sep 17 00:00:00 2001 From: yage Date: Wed, 10 Aug 2022 00:55:27 -0600 Subject: [PATCH] fixed credits bug with dashes --- zsh/utils/credits.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/zsh/utils/credits.zsh b/zsh/utils/credits.zsh index afdc9de..e55170d 100644 --- a/zsh/utils/credits.zsh +++ b/zsh/utils/credits.zsh @@ -3,6 +3,7 @@ __CREDITS() { [ ! $SCWRYPTS_ROOT ] && return 0 local COMMAND="$1" + [[ $COMMAND =~ - ]] && COMMAND=$(echo $COMMAND | sed 's/-/--/g') cd $SCWRYPTS_ROOT cat ./**/README.md \ | grep 'Generic Badge' \