mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Better theme failing-to-load support.
This commit is contained in:
parent
a78d112a7f
commit
10272b9aa4
1 changed files with 4 additions and 1 deletions
|
|
@ -1,7 +1,10 @@
|
|||
set_theme() {
|
||||
local themes
|
||||
themes=({$OMZ,$ZSH}/themes/$1.zsh-theme(N))
|
||||
source $themes[1] || omz_log_msg "theme: $1 was not found. falling back to default." && source $ZSH/themes/default.zsh-theme
|
||||
if ! source $themes[1]; then
|
||||
omz_log_msg "theme: $1 was not found. falling back to default."
|
||||
source $ZSH/themes/default.zsh-theme
|
||||
fi
|
||||
}
|
||||
|
||||
random_theme() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue