projects
/
zsh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
786c845
)
Define is435, autoload add-zsh-hook
author
Joerg Jaspert
<joerg@debian.org>
Fri, 20 Dec 2013 22:41:21 +0000
(23:41 +0100)
committer
Joerg Jaspert
<joerg@debian.org>
Fri, 20 Dec 2013 22:41:21 +0000
(23:41 +0100)
.zsh/functions/prompt_ganneff_setup
patch
|
blob
|
history
diff --git
a/.zsh/functions/prompt_ganneff_setup
b/.zsh/functions/prompt_ganneff_setup
index
6fdf578
..
a6efe40
100644
(file)
--- a/
.zsh/functions/prompt_ganneff_setup
+++ b/
.zsh/functions/prompt_ganneff_setup
@@
-642,10
+642,18
@@
prompt_ganneff_battery() {
fi
}
+is435(){
+ [[ $ZSH_VERSION == 4.3.<5->* || $ZSH_VERSION == 4.<4->* \
+ || $ZSH_VERSION == <5->* ]] && return 0
+ return 1
+}
+
is439(){
[[ $ZSH_VERSION == 4.3.<9->* || $ZSH_VERSION == 4.<4->* \
|| $ZSH_VERSION == <5->* ]] && return 0
return 1
}
+# Ensure the add-zsh-hook function is available
+is435 && autoload -Uz add-zsh-hook
prompt_ganneff_setup "$@"