projects
/
grml-etc-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
775cf70
)
Disable vcs_info if the function is not loaded
author
Frank Terbeck
<ft@grml.org>
Fri, 22 Jul 2011 11:42:07 +0000
(13:42 +0200)
committer
Frank Terbeck
<ft@grml.org>
Fri, 22 Jul 2011 11:42:07 +0000
(13:42 +0200)
etc/zsh/zshrc
patch
|
blob
|
history
diff --git
a/etc/zsh/zshrc
b/etc/zsh/zshrc
index
a20ad49
..
b8c950e
100644
(file)
--- a/
etc/zsh/zshrc
+++ b/
etc/zsh/zshrc
@@
-1305,7
+1305,7
@@
function info_print () {
is4 && [[ $NOPRECMD -eq 0 ]] && precmd () {
[[ $NOPRECMD -gt 0 ]] && return 0
# update VCS information
- vcs_info
+
(( ${+functions[vcs_info]} )) &&
vcs_info
if [[ $TERM == screen* ]] ; then
if [[ -n ${vcs_info_msg_1_} ]] ; then