diff --git a/templates/_zshrc.j2 b/templates/_zshrc.j2 index 83cad88..ce568aa 100644 --- a/templates/_zshrc.j2 +++ b/templates/_zshrc.j2 @@ -122,6 +122,16 @@ git_retag() { fi } +gh_checkout_pr() { + if [ "$#" -eq "2" ]; then + remote=$1 + pr=$2 + git fetch $remote pull/$pr/head:pr$pr + else + echo "ERROR: Please provide remote name and pr ID" + fi +} + # mpv alias mpv="mpv --autofit=70%"