From ad7c53598bc8c5980c01c6466f9ee6078a22df27 Mon Sep 17 00:00:00 2001 From: ArcheyDevil Date: Thu, 12 Apr 2012 15:55:42 +1000 Subject: [PATCH] If no theme if defined, don't log a message, still works if the theme is supplied but doesn't exist. --- lib/theming.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/theming.zsh b/lib/theming.zsh index d9413c174..3391b539f 100644 --- a/lib/theming.zsh +++ b/lib/theming.zsh @@ -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 }