dotfiles/zsh.d/git.zsh

13 lines
178 B
Bash
Raw Normal View History

# git
if (( $+commands[git] )); then
2023-04-19 17:06:25 +00:00
_git_chpwd_hook() {
if [[ -d ".git" ]]; then
git status
fi
}
2023-04-19 17:06:25 +00:00
chpwd_functions+=( _git_chpwd_hook )
2023-04-19 17:06:25 +00:00
_git_chpwd_hook
fi