Show PRs on chpwd for github repos
This commit is contained in:
parent
7fb24af4b8
commit
e7baa54cc1
11
zshrc
11
zshrc
@ -118,6 +118,17 @@ if (( $+commands[zellij] )); then
|
|||||||
fi
|
fi
|
||||||
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
|
# Source machine-specific setup
|
||||||
if [[ -s ~/.zshrc.local ]]; then
|
if [[ -s ~/.zshrc.local ]]; then
|
||||||
source ~/.zshrc.local
|
source ~/.zshrc.local
|
||||||
|
Loading…
x
Reference in New Issue
Block a user