Skip to content

Commit

Permalink
Fix gbd func by using cut which emits a NUL delimited list that fzf l…
Browse files Browse the repository at this point in the history
…ikes apparently? I dunno

Signed-off-by: Marcus Crane <marcus@utf9k.net>
  • Loading branch information
marcus-crane committed Dec 12, 2023
1 parent c084b8e commit 5f867f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zshrc.md
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ If you decide to back out, you can press ESC to cancel.
function gbd() {
git branch |
grep --invert-match $(git branch --show-current) |
awk '{print $1}'
cut -c 3- |
fzf --multi --preview="git log {} --" |
xargs git branch --delete --force
}
Expand Down

0 comments on commit 5f867f4

Please sign in to comment.