mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-11-26 18:33:03 +01:00
fix(cli): add plugins to an empty plugins=() list (#14276)
This commit is contained in:
1 parent
ad66117d08
commit
1a05a1091b
1 file changed
+2
-2
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user