aboutsummaryrefslogtreecommitdiff
path: root/base/.zsh/functions.zsh
diff options
context:
space:
mode:
authorAdam Hovorka <[email protected]>2017-08-06 16:12:32 -0600
committerAdam Hovorka <[email protected]>2017-08-06 16:12:32 -0600
commitac5294ae7aaa8668f0a74e32c1786a25adbbb80f (patch)
tree9d967f65407684becb0d7a9f57b00bf9f55c7802 /base/.zsh/functions.zsh
parent69d878b09a2c1aa8d3373a311cd5945e0a430045 (diff)
Add ZSH config based on changs/slim-zsh
Diffstat (limited to 'base/.zsh/functions.zsh')
-rw-r--r--base/.zsh/functions.zsh10
1 files changed, 10 insertions, 0 deletions
diff --git a/base/.zsh/functions.zsh b/base/.zsh/functions.zsh
new file mode 100644
index 0000000..7c405f0
--- /dev/null
+++ b/base/.zsh/functions.zsh
@@ -0,0 +1,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