From d8b9c75c59a58bd030f8219cb0ff4c1b9dc0a1d0 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Fri, 12 Jan 2018 17:21:38 +0000 Subject: [PATCH] Work on stuff --- bin/cups | 3 +++ config/oh-my-zsh/functions.zsh | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100755 bin/cups diff --git a/bin/cups b/bin/cups new file mode 100755 index 00000000..1798883b --- /dev/null +++ b/bin/cups @@ -0,0 +1,3 @@ +#!/usr/bin/sh +echo $(whoami) +#systemctl start org.cups.cupsd.service diff --git a/config/oh-my-zsh/functions.zsh b/config/oh-my-zsh/functions.zsh index 346f33b4..089021f3 100644 --- a/config/oh-my-zsh/functions.zsh +++ b/config/oh-my-zsh/functions.zsh @@ -78,6 +78,38 @@ function theme() { fi } +#Takes you to the js folder child theme +function js() { + public_html=${PWD%/public_html*}/public_html + if [ -d $public_html ]; then + theme=$public_html/wp-content/themes + if [ -d $theme ]; then + 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/js/ + else + echo " Can't find theme folder " + fi + else + echo " Can't find public_html folder." + fi +} + +#Takes you to the css folder child theme +function css() { + public_html=${PWD%/public_html*}/public_html + if [ -d $public_html ]; then + theme=$public_html/wp-content/themes + if [ -d $theme ]; then + 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/css/ + else + echo " Can't find theme folder " + fi + else + echo " Can't find public_html folder." + fi +} + #Takes you to the plugin directory function plugins() { public_html=${PWD%/public_html*}/public_html