summaryrefslogtreecommitdiff
path: root/etc/functions/dirinfo
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-10-03 12:19:45 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-10-03 12:19:45 +0200
commit8c347a2f75687286c6fb269cf3955457a1f2c769 (patch)
tree0901fd0fe43b736b698546b840abb96eea684b9c /etc/functions/dirinfo
parentcd42e445783c9cac35465127f3b907982baa2e22 (diff)
dirinfo function: Don't call todo (->zshrc speedup)
Diffstat (limited to 'etc/functions/dirinfo')
-rw-r--r--etc/functions/dirinfo8
1 files changed, 1 insertions, 7 deletions
diff --git a/etc/functions/dirinfo b/etc/functions/dirinfo
index eb4fda3..62c249c 100644
--- a/etc/functions/dirinfo
+++ b/etc/functions/dirinfo
@@ -5,13 +5,7 @@
typeset string
-if [[ -r .todo ]] {
- if [[ ${#$(todo)} -gt 0 ]] {
- string+='todo* '
- } else {
- string+='todo '
- }
-}
+[[ -r .todo ]] && string+='todo '
[[ -f .fehindex.jpg ]] && string+='feh '
[[ -d .hg ]] && string+='hg '
[[ -d .git ]] && string+='git '