mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
If no theme if defined, don't log a message, still works if the theme is supplied but doesn't exist.
This commit is contained in:
parent
e34d009e3c
commit
ad7c53598b
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@ set_theme() {
|
|||
local themes
|
||||
themes=({$OMZ,$ZSH}/themes/$1.zsh-theme(N))
|
||||
if ! source $themes[1] 2> /dev/null; then
|
||||
omz_log_msg "theme: $1 was not found. falling back to default."
|
||||
[[ "x$1" != "x" ]] && omz_log_msg "theme: $1 was not found. falling back to default."
|
||||
source $ZSH/themes/default.zsh-theme
|
||||
fi
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue