Update zsh and termite configs

Jonathan Hodgson 7 years ago
parent fb6493805e
commit 543c723bc5
  1. 7
      config/termite/config
  2. 2
      custom-oh-my-zsh/aliases.zsh
  3. 10
      custom-oh-my-zsh/functions.zsh

@ -8,9 +8,10 @@ dynamic_title = true
urgent_on_bell = true urgent_on_bell = true
clickable_url = true clickable_url = true
#font = Monospace 12 #font = Monospace 12
#font = DejaVu Sans Mono for Powerline 12 font = UbuntuMono Nerd Font 15
font = Ubuntu Mono derivative Powerline 15 font = RobotoMono Nerd Font 12
font = Roboto Mono for Powerline 12 font = DejaVuSansMonoForPowerline Nerd Font 13
#font = Ubuntu Mono 15 #font = Ubuntu Mono 15
scrollback_lines = 10000 scrollback_lines = 10000
search_wrap = true search_wrap = true

@ -110,3 +110,5 @@ alias bs="curl -s http://cbsg.sourceforge.net/cgi-bin/live | grep -Eo '^<li>.*</
alias jq="jq -C" alias jq="jq -C"
alias debugBuild='node --inspect-brk /usr/bin/grunt build' alias debugBuild='node --inspect-brk /usr/bin/grunt build'
alias lc="colorls -r"

@ -17,13 +17,19 @@ function old() {
mv "$1" "$1.old" mv "$1" "$1.old"
} }
function cdlc() {
cd "$@"
/home/jonathan/.gem/ruby/2.4.0/bin/colorls --report | tail -n +2
}
alias cd="cdlc"
#Takes you to the aquarius theme #Takes you to the aquarius theme
function aquarius() { function aquarius() {
public_html=${PWD%/public_html*}/public_html public_html=${PWD%/public_html*}/public_html
if [ -d $public_html ]; then if [ -d $public_html ]; then
theme=$public_html/wp-content/themes theme=$public_html/wp-content/themes
if [ -d $theme ]; then if [ -d $theme ]; then
cdls $theme/aquarius cdlc $theme/aquarius
else else
echo " Can't find theme folder " echo " Can't find theme folder "
fi fi
@ -39,7 +45,7 @@ function theme() {
theme=$public_html/wp-content/themes theme=$public_html/wp-content/themes
if [ -d $theme ]; then 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\/aquarius" | grep -v "$theme\/twenty*" | grep -v "$theme\/barelycorporate" -m 1)
cdls $child cdlc $child
else else
echo " Can't find theme folder " echo " Can't find theme folder "
fi fi

Loading…
Cancel
Save