f9f45ca222a0ec6fa867ab3733f15911d1b894e6

Author
Marc Cornellà <marc.cornella@live.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

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

See https://github.com/ohmyzsh/ohmyzsh/issues/9087#issuecomment-712460275

Diff

 1diff --git a/lib/cli.zsh b/lib/cli.zsh
 2index 82a2a398548f2c0bbbd2bf1e824d475febba1e6c..b1478a89fcf9bfcd3781567d638314a070828cc5 100644
 3--- a/lib/cli.zsh
 4+++ b/lib/cli.zsh
 5@@ -132,8 +132,8 @@ EOF
 6 
 7 function _omz::plugin::list {
 8     local -a custom_plugins builtin_plugins
 9-    custom_plugins=("$ZSH_CUSTOM"/plugins/*(/N:t))
10-    builtin_plugins=("$ZSH"/plugins/*(/N:t))
11+    custom_plugins=("$ZSH_CUSTOM"/plugins/*(-/N:t))
12+    builtin_plugins=("$ZSH"/plugins/*(-/N:t))
13 
14     # If the command is being piped, print all found line by line
15     if [[ ! -t 1 ]]; then