dotfiles/zsh.d/git.zsh

13 lines
178 B
Bash

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