13 lines
175 B
Bash
13 lines
175 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
|