From e7baa54cc177a197a3fcc560fbc57cdad5c54514 Mon Sep 17 00:00:00 2001 From: Daniel Lynn Date: Mon, 27 Feb 2023 17:48:37 -0600 Subject: [PATCH] Show PRs on chpwd for github repos --- zshrc | 11 +++++++++++ 1 file changed, 11 insertions(+) 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