summaryrefslogtreecommitdiff
path: root/etc/functions/dirinfo
blob: eb4fda3431dbf403af9cdf57ff6d684363a3ff05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
## vim:ft=zsh
## Collect some directory information for the prompt
## Written 2008 by Daniel Friesel <derf@derf.homelinux.org>
## 

typeset string

if [[ -r .todo ]] {
	if [[ ${#$(todo)} -gt 0 ]] {
		string+='todo* '
	} else {
		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