浏览代码

lib: follow symlinked plugins in `plugin list` CLI command

See https://github.com/ohmyzsh/ohmyzsh/issues/9087#issuecomment-712460275
Marc Cornellà 4 年之前
父节点
当前提交
f9f45ca222
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/cli.zsh

+ 2 - 2
lib/cli.zsh

@@ -132,8 +132,8 @@ EOF
 
 
 function _omz::plugin::list {
 function _omz::plugin::list {
     local -a custom_plugins builtin_plugins
     local -a custom_plugins builtin_plugins
-    custom_plugins=("$ZSH_CUSTOM"/plugins/*(/N:t))
-    builtin_plugins=("$ZSH"/plugins/*(/N:t))
+    custom_plugins=("$ZSH_CUSTOM"/plugins/*(-/N:t))
+    builtin_plugins=("$ZSH"/plugins/*(-/N:t))
 
 
     # If the command is being piped, print all found line by line
     # If the command is being piped, print all found line by line
     if [[ ! -t 1 ]]; then
     if [[ ! -t 1 ]]; then