zsh のプロンプトに git の branch 名を表示させていると...

zsh の RPROMPT を以下の様に設定している.

# get the name of the branch we are on
git_prompt_info() {
 ( [ -d .git ] && ref=$(git-symbolic-ref HEAD 2> /dev/null)) || return
 echo "git:${ref#refs/heads/}|"
}
...
RPROMPT=$'%{$fg_bold[red]%}$(git_prompt_info)%{$fg_bold[white]%}%B%(5~,%-2~/.../%1~,%~)%b'

この設定のまま研究室のサーバの NFS マウントしている領域にいくと, syslog に

 ...
 Oct 21 06:55:42 automount[6980]: failed to mount /misc/.git
 Oct 21 06:55:42 automount[6981]: failed to mount /misc/.git
 Oct 21 06:55:42 automount[6982]: failed to mount /misc/objects
 Oct 21 06:55:42 automount[6988]: failed to mount /misc/.git
 Oct 21 06:55:42 automount[6989]: failed to mount /misc/.git
 Oct 21 06:55:42 automount[6990]: failed to mount /misc/objects
 Oct 21 06:55:44 automount[6995]: failed to mount /misc/.git
 Oct 21 06:55:44 automount[6996]: failed to mount /misc/.git
 Oct 21 06:55:44 automount[6997]: failed to mount /misc/objects
 Oct 21 06:55:44 automount[7003]: failed to mount /misc/.git
 Oct 21 06:55:44 automount[7004]: failed to mount /misc/.git
 Oct 21 06:55:44 automount[7005]: failed to mount /misc/objects
 Oct 21 06:55:46 automount[7010]: failed to mount /misc/.git
 Oct 21 06:55:46 automount[7011]: failed to mount /misc/.git
 Oct 21 06:55:46 automount[7012]: failed to mount /misc/objects
 Oct 21 06:55:46 automount[7018]: failed to mount /misc/.git
 Oct 21 06:55:46 automount[7019]: failed to mount /misc/.git
 Oct 21 06:55:46 automount[7020]: failed to mount /misc/objects
 Oct 21 06:55:47 automount[7025]: failed to mount /misc/.git
 Oct 21 06:55:47 automount[7026]: failed to mount /misc/.git
 Oct 21 06:55:47 automount[7027]: failed to mount /misc/objects
 Oct 21 06:55:48 automount[7041]: failed to mount /misc/.git
 ...

と出ます. あぁぁ, ゴメンナサイすいません.

Host名で変えておくかな. というか, 他の場所でもこのエラー出しまくっているんだろうな, とか.

どうしたモンかな…