aboutsummaryrefslogtreecommitdiff
path: root/base/.zsh/functions.zsh
blob: 7c405f0b98c5fd8da63bcbe8853fb7245a5672df (plain)
1
2
3
4
5
6
7
8
9
10
todo () {
  a=""
  for i; do a="$a,$i"; done
  a="{$(echo "$a" | cut -d',' -f2-)}"
  echo "grep -R --exclude-dir=$a TODO | sed -e 's/.*TODO //;s/ \*\/$//;s/ -->//' | LC_ALL=C sort -u" | zsh
}

which () {
  (alias; declare -f) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot $@
} #export -f which