zshrc: New prompt: Only enable prompt themes with zsh >= 4.3.7
authorFrank Terbeck <ft@grml.org>
Tue, 5 Mar 2013 14:06:36 +0000 (15:06 +0100)
committerFrank Terbeck <ft@grml.org>
Tue, 5 Mar 2013 17:22:01 +0000 (18:22 +0100)
commit08ab5d927b758f7f3445d0dd57b6f9076d1636ca
tree55342c913ceba66e736cd0c9262a2e29073d6e41
parent5989b0e376ba27205f6bfc6277de52fbf5d0d482
zshrc: New prompt: Only enable prompt themes with zsh >= 4.3.7

The themes do use modern features, that require this constraint.

The fallback prompt, that was being used when promptsys wasn't available
is _way_ more backwards compatible (and will remain like that). Use that
fallback in cases of $ZSH_VERSION < 4.3.7 as well.

This also means, that the GRMLPROMPT=1 and [[ -n $GRML_CHROOT ]] prompts
are not available with shells that old. Version 4.3.7 of zsh was
released on 2008-10-28. I think it's reasonable to require ~5 year old
software for the full-blown version of a setup. The last stable debian
release ships version 4.3.10 and the upcoming release will sport version
4.3.17. Grml ISOs come with version >= 5.0.0.

Signed-off-by: Frank Terbeck <ft@grml.org>
etc/zsh/zshrc