mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
Hides another variable.
This commit is contained in:
parent
9a7069dbcb
commit
1eb75d9c31
1 changed files with 4 additions and 1 deletions
|
|
@ -69,9 +69,12 @@ _source_zsh_theme() {
|
|||
source "$RANDOM_THEME"
|
||||
echo "[oh-my-zsh] Random theme '$theme_name' loaded..."
|
||||
elif [ ! "$ZSH_THEME" = "" ]; then
|
||||
local theme_path
|
||||
local zsh_path
|
||||
|
||||
# custom themes take precedence over built-in themes!
|
||||
for zsh_path in $ZSH_CUSTOM $ZSH; do
|
||||
local theme_path="themes/$ZSH_THEME.zsh-theme"
|
||||
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