6b57839292025d17d97410d1627228f3ec730a62

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

Message

fix(CLI): show symlinked themes in `omz theme list`

Diff

 1diff --git a/lib/cli.zsh b/lib/cli.zsh
 2index 86a0ed3c47415ca2432b859cd744d4e5a5a45d01..3346d3973407378606897ff1792b4d8b1b63b0ff 100644
 3--- a/lib/cli.zsh
 4+++ b/lib/cli.zsh
 5@@ -359,8 +359,8 @@ EOF
 6 
 7 function _omz::theme::list {
 8   local -a custom_themes builtin_themes
 9-  custom_themes=("$ZSH_CUSTOM"/**/*.zsh-theme(.N:r:gs:"$ZSH_CUSTOM"/themes/:::gs:"$ZSH_CUSTOM"/:::))
10-  builtin_themes=("$ZSH"/themes/*.zsh-theme(.N:t:r))
11+  custom_themes=("$ZSH_CUSTOM"/**/*.zsh-theme(-.N:r:gs:"$ZSH_CUSTOM"/themes/:::gs:"$ZSH_CUSTOM"/:::))
12+  builtin_themes=("$ZSH"/themes/*.zsh-theme(-.N:t:r))
13 
14   # If the command is being piped, print all found line by line
15   if [[ ! -t 1 ]]; then