From 1a05a1091be6bda0158aa24cdc9bdb881f1fc60c Mon Sep 17 00:00:00 2001 From: Thejesh Date: Thu, 26 Nov 2026 06:51:15 -0800 Subject: [PATCH] fix(cli): add plugins to an empty plugins=() list (#14276) --- lib/cli.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cli.zsh b/lib/cli.zsh index a28facb1d..59873368b 100644 --- a/lib/cli.zsh +++ b/lib/cli.zsh @@ -392,8 +392,8 @@ function _omz::plugin::enable { # Enable plugins awk script local awk_script=" -# if plugins=() is in oneline form, substitute ) with new plugins and go to the next line -/^[ \t]*plugins=\([^#]+\).*\$/ { +# if plugins=() is in oneline form (empty or not), substitute ) with new plugins and go to the next line +/^[ \t]*plugins=\([^#]*\).*\$/ { sub(/\)/, \" $add_plugins&\") print \$0 next