mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
make 'random' theme read custom and local folders as well
This commit is contained in:
parent
d398b1c847
commit
304ea1468a
1 changed files with 2 additions and 0 deletions
|
|
@ -69,6 +69,8 @@ for config_file ($ZSH_LOCAL/*.zsh) source $config_file
|
|||
if [ "$ZSH_THEME" = "random" ]
|
||||
then
|
||||
themes=($ZSH/themes/*zsh-theme)
|
||||
themes+=($ZSH_CUSTOM/*zsh-theme)
|
||||
themes+=($ZSH_LOCAL/*zsh-theme)
|
||||
N=${#themes[@]}
|
||||
((N=(RANDOM%N)+1))
|
||||
RANDOM_THEME=${themes[$N]}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue