dotfiles/zsh.d/gh.zsh

13 lines
183 B
Bash

# 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