dotfiles/.config/fish/functions/fzf_forgit.fish

6 lines
204 B
Fish

function fgit
set selected_command (functions | grep -o 'forgit::[^ ]*' | cut -d ':' -f 2- | sed 's/^://' | fzf)
if [ -n "$selected_command" ]
eval "forgit::$selected_command"
end
end