## vim:ft=zsh ## Collect some directory information for the prompt typeset string [[ -r .todo ]] && string+='todo ' [[ -f .fehindex.jpg ]] && string+='feh ' [[ -d .hg ]] && string+='hg ' [[ -d .git ]] && string+='git ' [[ -d .svn ]] && string+='svn ' [[ -f Makefile || -f makefile ]] && string+='make ' echo $string