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

This commit is contained in:
ArcheyDevil 2012-02-12 18:53:13 +11:00
commit 458587a177

View file

@ -1,7 +1,7 @@
set_theme() { set_theme() {
local themes local themes
themes=({$OMZ,$ZSH}/themes/$1.zsh-theme(N)) 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." omz_log_msg "theme: $1 was not found. falling back to default."
source $ZSH/themes/default.zsh-theme source $ZSH/themes/default.zsh-theme
fi fi