mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
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:
parent
3072b06211
commit
458587a177
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue