Update zsh and termite configs

master
Jonathan Hodgson 7 years ago
parent 63f3e038aa
commit bc3a22e092
  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
clickable_url = true
#font = Monospace 12
#font = DejaVu Sans Mono for Powerline 12
font = Ubuntu Mono derivative Powerline 15
font = Roboto Mono for Powerline 12
font = UbuntuMono Nerd Font 15
font = RobotoMono Nerd Font 12
font = DejaVuSansMonoForPowerline Nerd Font 13
#font = Ubuntu Mono 15
scrollback_lines = 10000
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 debugBuild='node --inspect-brk /usr/bin/grunt build'
alias lc="colorls -r"

@ -17,13 +17,19 @@ function 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
function aquarius() {
public_html=${PWD%/public_html*}/public_html
if [ -d $public_html ]; then
theme=$public_html/wp-content/themes
if [ -d $theme ]; then
cdls $theme/aquarius
cdlc $theme/aquarius
else
echo " Can't find theme folder "
fi
@ -39,7 +45,7 @@ function theme() {
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)
cdls $child
cdlc $child
else
echo " Can't find theme folder "
fi

Loading…
Cancel
Save