.functions - additions from paulirish/dotfiles & modifications