1# credit to https://github.com/helix-editor/helix/discussions/5883
2function ghpr
3 GH_FORCE_TTY=100% gh pr list --limit 300 | \
4 fzf --ansi --preview 'GH_FORCE_TTY=100% gh pr view {1}' --preview-window 'down,70%' --header-lines 3 | \
5 awk '{print $1}' | \
6 xargs gh pr checkout
7end