mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 12:15:29 +00:00
feat: add function to filter GitHub pull requests for zsh and fish shell
This commit is contained in:
5
fish/functions/ghpr.fish
Normal file
5
fish/functions/ghpr.fish
Normal file
@@ -0,0 +1,5 @@
|
||||
# Search and preview GitHub pull requests
|
||||
function ghpr
|
||||
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
|
||||
Reference in New Issue
Block a user