1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-26 07:40:07 +00:00

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.
This commit is contained in:
Aswath K 2018-10-08 21:55:20 +05:30 committed by Marc Cornellà
parent 999d3ddf4c
commit d9ea260479

View file

@ -19,6 +19,8 @@ function theme
function lstheme function lstheme
{ {
cd $ZSH/themes # Resources:
ls *zsh-theme | sed 's,\.zsh-theme$,,' # 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)
} }