dotfiles/zsh.d/gh.zsh

13 lines
183 B
Bash
Raw Normal View History

# gh
if (( $+commands[gh] )); then
2023-04-19 17:06:25 +00:00
_gh_chpwd_hook() {
if [[ -d ".github" ]]; then
2023-04-11 18:40:51 +00:00
PAGER= gh pr list
fi
}
2023-04-19 17:06:25 +00:00
chpwd_functions+=( _gh_chpwd_hook )
2023-04-19 17:06:25 +00:00
_gh_chpwd_hook
fi