dotfiles/fish/.config/fish/functions/ffrs.fish

3 lines
143 B
Fish

function ffrs --description 'Git restore a staged file using fzf'
git restore --staged $argv -- (git diff --name-only --staged | fzf -m)
end