From ffeb770593cef6a9c7b63a09c0fc16a1f6f6f13f Mon Sep 17 00:00:00 2001 From: Noah Gorny Date: Tue, 6 Apr 2021 02:05:46 +0300 Subject: [PATCH] helpers: Print type when using disable all --- lib/helpers.bash | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/helpers.bash b/lib/helpers.bash index e85961cd..5865c610 100755 --- a/lib/helpers.bash +++ b/lib/helpers.bash @@ -633,7 +633,11 @@ _disable-thing () _bash-it-clean-component-cache "${file_type}" - printf '%s\n' "$file_entity disabled." + if [ "$file_entity" = "all" ]; then + printf '%s\n' "$file_entity $(_bash-it-pluralize-component "$file_type") disabled." + else + printf '%s\n' "$file_entity disabled." + fi } _enable-plugin ()