• d3Xt3r@lemmy.nzM
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    6 months ago

    Those of you reading this might also be interested in two_percent, which is a fork of skim, which in turn is a Rust implementation of fzf. two_percent is faster, more efficient and uses less memory than fzf, which is especially noticeable with large inputs.

  • Deebster@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    6 months ago
    function delete-branches() {
      git branch |
        grep --invert-match '\*' |
        cut -c 3- |
        fzf --multi --preview="git log {} --" |
        xargs --no-run-if-empty git branch --delete --force
    }
    

    This is really slick.