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