function todo { ack TODO $@ | sed -e 's/.*TODO //;s/ \*\/$//;s/ -->//' | LC_ALL=C sort -u } function which { (alias; declare -f) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot $@ } #export -f which function trash { mkdir -p "$HOME/.trash" for file in "$@"; do mv "$file" "$HOME/.trash/$(basename $file).$(date +%Y%m%d-%H%M%S)" done } # Add this to your crontab: # 43 0 * * 3 find ~/.trash -mindepth 1 -mtime +90 -delete wttr() { curl -q -H "Accept-Language: ${LANG%_*}" wttr.in/"${1:-Pleasant Grove}\?${2:-0q}" } hex() { emulate -L zsh if [[ -n "$1" ]]; then printf "%X\n" $1 else print 'Usage: hex '; fi }