# gh
if (( $+commands[gh] )); then
  _gh_chpwd_hook() {
    if [[ -d ".github" ]]; then
      PAGER= gh pr list
    fi
  }

  chpwd_functions+=( _gh_chpwd_hook )

  _gh_chpwd_hook
fi