mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
Refactors sourcing the zsh theme.
This commit is contained in:
parent
e89c8f07a3
commit
d15338c1a9
1 changed files with 3 additions and 2 deletions
|
|
@ -69,13 +69,14 @@ _source_zsh_theme() {
|
|||
|
||||
source "$RANDOM_THEME"
|
||||
echo "[oh-my-zsh] Random theme '$theme_name' loaded..."
|
||||
elif [ ! "$ZSH_THEME" = "" ]; then
|
||||
elif [ "$ZSH_THEME" != "" ]; then
|
||||
echo ho
|
||||
local theme_path
|
||||
local zsh_path
|
||||
|
||||
# custom themes take precedence over built-in themes!
|
||||
theme_path="themes/$ZSH_THEME.zsh-theme"
|
||||
for zsh_path in $ZSH_CUSTOM $ZSH; do
|
||||
theme_path="themes/$ZSH_THEME.zsh-theme"
|
||||
if [ -f "$zsh_path/$theme_path" ]; then
|
||||
source "$zsh_path/$theme_path"
|
||||
break
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue