blob: 689c20fb18da4f6ac00f10a53a2e1fb51fb9fe30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
## 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 '
# if we're running in screen, we're the only one writing into the prompt
# -> no trailing whitespace
if [[ $TERM == screen ]] {
echo ${string% }
} else {
echo $string
}
|