浏览代码

themes: fix custom themes directory (#7233)

Aswath K 5 年之前
父节点
当前提交
08f2fc1214
共有 2 个文件被更改,包括 2 次插入3 次删除
  1. 2 2
      plugins/themes/themes.plugin.zsh
  2. 0 1
      plugins/yum/README.md

+ 2 - 2
plugins/themes/themes.plugin.zsh

@@ -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

+ 0 - 1
plugins/yum/README.md

@@ -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              |
-