X-Git-Url: https://git.sthu.org/?p=shutils.git;a=blobdiff_plain;f=dotfiles%2Fshell%2Fzshrc;h=9e9b7fa7d94742fa41fb39b47ecfca182cc8886e;hp=877798900e514ab6f400869bdd218fe2256f4f3c;hb=b0033e2f0e2faeb605c3831a242bad2673840692;hpb=f45669f90ad6b6385cc1db351a19c2955cb0e529 diff --git a/dotfiles/shell/zshrc b/dotfiles/shell/zshrc index 8777989..9e9b7fa 100644 --- a/dotfiles/shell/zshrc +++ b/dotfiles/shell/zshrc @@ -25,6 +25,8 @@ eval `dircolors` LS_COLORS="${LS_COLORS}*.divx=01;35:" zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} +TERM=xterm-256color + zstyle ':completion:*' menu select zmodload -i zsh/complist @@ -110,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 }