summaryrefslogtreecommitdiff
path: root/lib/cli.zsh
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2021-01-05 19:09:57 +0100
committerMarc Cornellà <marc.cornella@live.com>2021-01-05 19:09:57 +0100
commit6b57839292025d17d97410d1627228f3ec730a62 (patch)
tree09185e7c5190d85544f98e8d31064138d28a818a /lib/cli.zsh
parent64cb153084d2817f1c14691ffca1f23ebc3e8c48 (diff)
downloadzsh-6b57839292025d17d97410d1627228f3ec730a62.tar.gz
zsh-6b57839292025d17d97410d1627228f3ec730a62.tar.bz2
zsh-6b57839292025d17d97410d1627228f3ec730a62.zip
fix(CLI): show symlinked themes in `omz theme list`
Diffstat (limited to 'lib/cli.zsh')
-rw-r--r--lib/cli.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cli.zsh b/lib/cli.zsh
index 86a0ed3c4..3346d3973 100644
--- a/lib/cli.zsh
+++ b/lib/cli.zsh
@@ -359,8 +359,8 @@ EOF
function _omz::theme::list {
local -a custom_themes builtin_themes
- custom_themes=("$ZSH_CUSTOM"/**/*.zsh-theme(.N:r:gs:"$ZSH_CUSTOM"/themes/:::gs:"$ZSH_CUSTOM"/:::))
- builtin_themes=("$ZSH"/themes/*.zsh-theme(.N:t:r))
+ custom_themes=("$ZSH_CUSTOM"/**/*.zsh-theme(-.N:r:gs:"$ZSH_CUSTOM"/themes/:::gs:"$ZSH_CUSTOM"/:::))
+ builtin_themes=("$ZSH"/themes/*.zsh-theme(-.N:t:r))
# If the command is being piped, print all found line by line
if [[ ! -t 1 ]]; then