mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01: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:
parent
999d3ddf4c
commit
d9ea260479
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue