themes: fix custom themes directory (#7233)

This commit is contained in:
Aswath K 2018-10-05 13:43:39 +05:30 committed by Marc Cornellà
parent 43e5c9093a
commit 08f2fc1214
2 changed files with 2 additions and 3 deletions

View File

@ -8,9 +8,9 @@ function theme
source "$RANDOM_THEME"
echo "[oh-my-zsh] Random theme '$RANDOM_THEME' loaded..."
else
if [ -f "$ZSH_CUSTOM/$1.zsh-theme" ]
if [ -f "$ZSH_CUSTOM/themes/$1.zsh-theme" ]
then
source "$ZSH_CUSTOM/$1.zsh-theme"
source "$ZSH_CUSTOM/themes/$1.zsh-theme"
else
source "$ZSH/themes/$1.zsh-theme"
fi

View File

@ -25,4 +25,3 @@ plugins=(... yum)
| ygr | `sudo yum groupremove` | Remove pagage group |
| yrl | `sudo yum remove --remove-leaves` | Remove package and leaves |
| yc | `sudo yum clean all` | Clean yum cache |