learnbyexample@programming.dev to Linux@lemmy.mlEnglish · 7 months agoImproving shell workflows with fzfseb.jambor.devexternal-linkmessage-square8fedilinkarrow-up147arrow-down12
arrow-up145arrow-down1external-linkImproving shell workflows with fzfseb.jambor.devlearnbyexample@programming.dev to Linux@lemmy.mlEnglish · 7 months agomessage-square8fedilink
minus-squareDeebster@programming.devlinkfedilinkarrow-up11arrow-down1·7 months agofunction 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.
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.