themes: add custom themes directory support to `lstheme` (#7236)

`lstheme` command used to list only the themes listed in `$ZSH/themes/` directory. This commit adds themes in `$ZSH_CUSTOM/themes/` also to the theme listings.
master
Aswath K 8 years ago committed by Marc Cornellà
parent 999d3ddf4c
commit d9ea260479
  1. 6
      plugins/themes/themes.plugin.zsh

@ -19,6 +19,8 @@ function theme
function lstheme
{
cd $ZSH/themes
ls *zsh-theme | sed 's,\.zsh-theme$,,'
# Resources:
# http://zsh.sourceforge.net/Doc/Release/Expansion.html#Modifiers
# http://zsh.sourceforge.net/Doc/Release/Expansion.html#Glob-Qualifiers
print -l {$ZSH,$ZSH_CUSTOM}/themes/*.zsh-theme(N:t:r)
}

Loading…
Cancel
Save