# git
if (( $+commands[git] )); then
  _git_chpwd_hook() {
    if [[ -d ".git" ]]; then
      git status
    fi
  }

  chpwd_functions+=( _git_chpwd_hook )

  _git_chpwd_hook
fi