Commit d9ea2604 authored by Aswath K's avatar Aswath K Committed by Marc Cornellà
Browse files

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.
parent 999d3ddf
...@@ -19,6 +19,8 @@ function theme ...@@ -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)
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment