mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-23 02:35:38 +01:00
Updated it not in the plugin
This commit is contained in:
parent
3d6fd4470e
commit
88c5ed1b60
1 changed files with 17 additions and 1 deletions
18
oh-my-zsh.sh
18
oh-my-zsh.sh
|
|
@ -226,7 +226,23 @@ if [[ -n "$ZSH_THEME" ]]; then
|
|||
elif is_theme "$ZSH/themes" "$ZSH_THEME"; then
|
||||
source "$ZSH/themes/$ZSH_THEME.zsh-theme"
|
||||
else
|
||||
echo "[oh-my-zsh] theme '$ZSH_THEME' not found"
|
||||
echo "[oh-my-zsh] Theme '$ZSH_THEME' was not found, using default theme!"
|
||||
if is_theme "$ZSH_CUSTOM"; then
|
||||
source "$ZSH_CUSTOM/robbyrussell.zsh-theme"
|
||||
elif is_theme "$ZSH_CUSTOM/themes"; then
|
||||
source "$ZSH_CUSTOM/themes/robbyrussell.zsh-theme"
|
||||
elif is_theme "$ZSH/themes"; then
|
||||
source "$ZSH/themes/robbyrussell.zsh-theme"
|
||||
else
|
||||
echo "oh-my-zsh] The default theme (robbyrussell) was not found, redownloading it!"
|
||||
if ! command -v curl &> /dev/null; then
|
||||
sudo wget -qO $ZSH/themes/robbyrussell.zsh-theme https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/refs/heads/master/themes/robbyrussell.zsh-theme
|
||||
source "$ZSH/themes/robbyrussell.zsh-theme"
|
||||
else
|
||||
sudo curl -s -o $ZSH/themes/robbyrussell.zsh-theme https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/refs/heads/master/themes/robbyrussell.zsh-theme
|
||||
source "$ZSH/themes/robbyrussell.zsh-theme"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue