Show PRs on chpwd for github repos

This commit is contained in:
Daniel Lynn 2023-02-27 17:48:37 -06:00
parent 7fb24af4b8
commit e7baa54cc1
Signed by: daniel
GPG Key ID: 655C07B9B3DDC88B

11
zshrc
View File

@ -118,6 +118,17 @@ if (( $+commands[zellij] )); then
fi
fi
# gh
if (( $+commands[gh] )); then
gh_chpwd_hook() {
if [[ -d ".github" ]]; then
gh pr list
fi
}
chpwd_functions+=( gh_chpwd_hook )
fi
# Source machine-specific setup
if [[ -s ~/.zshrc.local ]]; then
source ~/.zshrc.local