Skip to content

Commit

Permalink
feat(zsh): make pr segment work inside entire git tree
Browse files Browse the repository at this point in the history
  • Loading branch information
denolfe committed May 30, 2024
1 parent 1d3fc84 commit 0d6e4d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zsh/p10k.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -1632,7 +1632,7 @@

# Shows the PR number as hyperlink
prompt_pr_number() {
if [[ ! -d .git ]]; then return; fi
if ! git rev-parse --is-inside-work-tree &>/dev/null; then return; fi

local pr_number=$(git config --get branch."$(git branch --show-current)".github-pr-owner-number | awk -F "#" '{print $3}')

Expand Down

0 comments on commit 0d6e4d2

Please sign in to comment.