Skip to content

Instantly share code, notes, and snippets.

@elijahmanor
Last active May 5, 2023 17:26
Show Gist options
  • Save elijahmanor/58651b696c49df442b064393901ef126 to your computer and use it in GitHub Desktop.
Save elijahmanor/58651b696c49df442b064393901ef126 to your computer and use it in GitHub Desktop.
ghpr function
function ghpr() {
GH_FORCE_TTY=100% gh pr list | fzf --query "$1" --ansi --preview 'GH_FORCE_TTY=100% gh pr view {1}' --preview-window down --header-lines 3 | awk '{print $1}' | xargs gh pr checkout
}
# awesome!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment