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

4 lines
143 B
Fish
Raw Normal View History

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