Permalink
Browse files

zsh: add the most frequently-used D snippet

  • Loading branch information...
1 parent fc1479f commit db9138d93ee2ca8f6c777395630179aa8630c232 @proger committed Jan 1, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 zsh/zshrc.solaris
View
@@ -36,6 +36,14 @@ bat() {
$capacity $rate $(($capacity / $rate))
}
+kfuntrace() {
+ local fun=$1
+ dtrace -x flowindent \
+ -n ${fun}:entry'{ stack(); self->traced = 1; }' \
+ -n fbt:::'/self->traced/{}' \
+ -n ${fun}:return'{ self->traced = 0 }'
+}
+
export CVS_RSH=ssh
# vim: ft=zsh

0 comments on commit db9138d

Please sign in to comment.