mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 16:45:38 -05:00
Modified git checkout branch script. I needed to add the --no-pager attribute to make it work.
@@ -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/.* //")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user