|
|
@ -29,15 +29,14 @@ done |
|
|
|
|
|
|
|
|
|
|
|
# Load the theme. |
|
|
|
# Load the theme. |
|
|
|
if [[ "$ZSH_THEME" == "random" ]]; then |
|
|
|
if [[ "$ZSH_THEME" == "random" ]]; then |
|
|
|
themes=($ZSH/themes/*.zsh-theme) |
|
|
|
themes=($ZSH/themes/**/*.theme.zsh) |
|
|
|
theme_index=${#themes[@]} |
|
|
|
theme_index=${#themes[@]} |
|
|
|
(( theme_index=((RANDOM % theme_index) + 1) )) |
|
|
|
(( theme_index=((RANDOM % theme_index) + 1) )) |
|
|
|
random_theme="${themes[$theme_index]}" |
|
|
|
random_theme="${themes[$theme_index]}" |
|
|
|
source "$random_theme" |
|
|
|
source "$random_theme" |
|
|
|
else |
|
|
|
else |
|
|
|
if [ ! "$ZSH_THEME" = "" ] |
|
|
|
if [[ -f "$ZSH/themes/$ZSH_THEME/$ZSH_THEME.theme.zsh" ]]; then |
|
|
|
then |
|
|
|
source "$ZSH/themes/$ZSH_THEME/$ZSH_THEME.theme.zsh" |
|
|
|
source "$ZSH/themes/$ZSH_THEME.zsh-theme" |
|
|
|
|
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|