mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-03 04:20:01 +02:00
Also check custom themes in $ZSH_CUSTOM/themes
According to [Overriding and adding themes][1] documentation,
the location of custom themes should be on `$ZSH_CUSTOM/themes`
```
zsh_custom
└── themes
└── my_awesome_theme.zsh-theme
```
[1]: https://github.com/robbyrussell/oh-my-zsh/wiki/Customization#overriding-and-adding-themes
This commit is contained in:
parent
f3fa41834d
commit
2f7674adc3
1 changed files with 3 additions and 0 deletions
|
|
@ -11,6 +11,9 @@ function theme
|
||||||
if [ -f "$ZSH_CUSTOM/$1.zsh-theme" ]
|
if [ -f "$ZSH_CUSTOM/$1.zsh-theme" ]
|
||||||
then
|
then
|
||||||
source "$ZSH_CUSTOM/$1.zsh-theme"
|
source "$ZSH_CUSTOM/$1.zsh-theme"
|
||||||
|
elif [ -f "$ZSH_CUSTOM/themes/$1.zsh-theme" ]
|
||||||
|
then
|
||||||
|
source "$ZSH_CUSTOM/themes/$1.zsh-theme"
|
||||||
else
|
else
|
||||||
source "$ZSH/themes/$1.zsh-theme"
|
source "$ZSH/themes/$1.zsh-theme"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue