diff --git a/zshrc b/zshrc index 744acff..de2dbb5 100644 --- a/zshrc +++ b/zshrc @@ -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