From 8c347a2f75687286c6fb269cf3955457a1f2c769 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 3 Oct 2008 12:19:45 +0200 Subject: dirinfo function: Don't call todo (->zshrc speedup) --- etc/functions/dirinfo | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'etc') 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 ' -- cgit v1.2.3