Last active
May 5, 2023 17:26
-
-
Save elijahmanor/58651b696c49df442b064393901ef126 to your computer and use it in GitHub Desktop.
ghpr function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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