From 458587a17770f81a0ad3165c9b1e55ba6fb3fde3 Mon Sep 17 00:00:00 2001 From: ArcheyDevil Date: Sun, 12 Feb 2012 18:53:13 +1100 Subject: [PATCH] Now when the theme doesn't exist, we don't care about the fact we can't source the file, we only care that it doesn't exist, lib/logging.zsh shows us that there is the error --- lib/theming.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/theming.zsh b/lib/theming.zsh index 9ed58c701..d9413c174 100644 --- a/lib/theming.zsh +++ b/lib/theming.zsh @@ -1,7 +1,7 @@ set_theme() { local themes themes=({$OMZ,$ZSH}/themes/$1.zsh-theme(N)) - if ! source $themes[1]; then + if ! source $themes[1] 2> /dev/null; then omz_log_msg "theme: $1 was not found. falling back to default." source $ZSH/themes/default.zsh-theme fi