From b0033e2f0e2faeb605c3831a242bad2673840692 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Mon, 24 Dec 2012 10:10:03 +0100 Subject: [PATCH] zshrc: do not vcs_info in autofs mountpoints --- dotfiles/shell/zshrc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dotfiles/shell/zshrc b/dotfiles/shell/zshrc index 92d5b02..9e9b7fa 100644 --- a/dotfiles/shell/zshrc +++ b/dotfiles/shell/zshrc @@ -112,7 +112,13 @@ function precmd () if [[ 0 -ne "${exitstatus}" ]] ; then PR_STUFF="${PR_RED}RET ${exitstatus}${PR_NO_COLOUR}" fi - vcs_info + + # autofs always complains not being able to mount .hg/ and the like + if [ -r /etc/auto.master ] && grep -qe "^$PWD\s" /etc/auto.master; then + vcs_info_msg_0_="" + else + vcs_info + fi } -- 2.30.2