From 2347c0d7f117cf6b522866611d26134ddd15cba9 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Wed, 29 Nov 2017 09:55:11 +0000 Subject: [PATCH] Small changes --- config/oh-my-zsh/functions.zsh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/config/oh-my-zsh/functions.zsh b/config/oh-my-zsh/functions.zsh index 14f52cc2..c0caa293 100644 --- a/config/oh-my-zsh/functions.zsh +++ b/config/oh-my-zsh/functions.zsh @@ -49,7 +49,11 @@ function aquarius() { if [ -d $public_html ]; then theme=$public_html/wp-content/themes if [ -d $theme ]; then - cdlc $theme/aquarius + if [ -d "$theme/aquarius" ]; then + cdlc $theme/aquarius + else + cdlc $theme/theme_aquarius + fi else echo " Can't find theme folder " fi @@ -64,7 +68,7 @@ function theme() { if [ -d $public_html ]; then theme=$public_html/wp-content/themes if [ -d $theme ]; then - child=$(ls -d $theme/*/ | grep -v "$theme\/aquarius" | grep -v "$theme\/twenty*" | grep -v "$theme\/barelycorporate" -m 1) + child=$(ls -d $theme/*/ | grep -v "$theme\/theme-aquarius" | grep -v "$theme\/aquarius" | grep -v "$theme\/twenty*" | grep -v "$theme\/barelycorporate" -m 1) cdlc $child else echo " Can't find theme folder "