mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-19 09:03:43 -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 - checkout git branch
|
||||||
fbr() {
|
fbr() {
|
||||||
local branches branch
|
local branches branch
|
||||||
branches=$(git branch -vv) &&
|
branches=$(git --no-pager branch -vv) &&
|
||||||
branch=$(echo "$branches" | fzf +m) &&
|
branch=$(echo "$branches" | fzf +m) &&
|
||||||
git checkout $(echo "$branch" | awk '{print $1}' | sed "s/.* //")
|
git checkout $(echo "$branch" | awk '{print $1}' | sed "s/.* //")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user