git status on git repo entry

This commit is contained in:
Daniel Lynn 2023-03-13 17:16:23 -05:00
parent 22b16ea1be
commit 9c73bfd7d4
Signed by: daniel
GPG Key ID: 655C07B9B3DDC88B

13
zshrc
View File

@ -120,6 +120,19 @@ if (( $+commands[zellij] )); then
fi fi
fi fi
# git
if (( $+commands[git] )); then
git_chpwd_hook() {
if [[ -d ".git" ]]; then
git status
fi
}
chpwd_functions+=( git_chpwd_hook )
git_chpwd_hook
fi
# gh # gh
if (( $+commands[gh] )); then if (( $+commands[gh] )); then
gh_chpwd_hook() { gh_chpwd_hook() {