fix(cli): add plugins to an empty plugins=() list (#14276)

This commit is contained in:
Thejesh authored and GitHub committed 2026-11-26 06:51:15 -08:00
1 parent ad66117d08
commit 1a05a1091b
1 file changed
+2 -2
+2 -2
View File
@@ -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