learnbyexample to [email protected]English • 2 months agoImproving shell workflows with fzfseb.jambor.devmessage-square8arrow-up147arrow-down11
arrow-up146arrow-down1external-linkImproving shell workflows with fzfseb.jambor.devlearnbyexample to [email protected]English • 2 months agomessage-square8
minus-squareDeebsterlink10•2 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.