m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-19 00:53:42 -05:00

Modified git checkout branch script. I needed to add the --no-pager attribute to make it work.

Kes
2019-04-03 09:50:29 -04:00
parent c4dadbc94f
commit 571460e560

@@ -388,7 +388,7 @@ List all available git commands and help with [`git-commands`](https://github.co
# fbr - checkout git branch
fbr() {
local branches branch
branches=$(git branch -vv) &&
branches=$(git --no-pager branch -vv) &&
branch=$(echo "$branches" | fzf +m) &&
git checkout $(echo "$branch" | awk '{print $1}' | sed "s/.* //")
}