tangled
alpha
login
or
join now
boltless.me
/
dot
0
fork
atom
dotfiles
0
fork
atom
overview
issues
pulls
pipelines
feat(fish): add extra function & options
BoltlessEngineer
2 years ago
39acbb35
1bfc7c7f
+8
2 changed files
expand all
collapse all
unified
split
fish
config.fish
functions
ghpr.fish
+1
fish/config.fish
···
11
11
alias la="exa -lha --git --no-user"
12
12
alias nv="foreground_nvim"
13
13
alias gr="gh repo clone"
14
14
+
alias glz="lazygit"
14
15
15
16
# Exported Variables
16
17
set -gx PATH ~/.local/bin $PATH
+7
fish/functions/ghpr.fish
···
1
1
+
# credit to https://github.com/helix-editor/helix/discussions/5883
2
2
+
function ghpr
3
3
+
GH_FORCE_TTY=100% gh pr list --limit 300 | \
4
4
+
fzf --ansi --preview 'GH_FORCE_TTY=100% gh pr view {1}' --preview-window 'down,70%' --header-lines 3 | \
5
5
+
awk '{print $1}' | \
6
6
+
xargs gh pr checkout
7
7
+
end