Files
dotfiles/nix/home/fish/functions/ghpr.fish
2024-07-30 20:49:42 +02:00

5 lines
253 B
Fish

function ghpr --description "Search and preview GitHub pull requests"
set -l GH_FORCE_TTY 100%
gh pr list | fzf --ansi --preview 'GH_FORCE_TTY=100% gh pr view {1}' --preview-window down --header-lines 3 | awk '{print $1}' | xargs gh pr checkout
end