diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-10-03 12:19:45 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-10-03 12:19:45 +0200 |
commit | 8c347a2f75687286c6fb269cf3955457a1f2c769 (patch) | |
tree | 0901fd0fe43b736b698546b840abb96eea684b9c /etc | |
parent | cd42e445783c9cac35465127f3b907982baa2e22 (diff) |
dirinfo function: Don't call todo (->zshrc speedup)
Diffstat (limited to 'etc')
-rw-r--r-- | etc/functions/dirinfo | 8 |
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 ' |