mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 16:45:38 -05:00
Updated Examples (markdown)
@@ -125,7 +125,8 @@ fbr() {
|
|||||||
fbr() {
|
fbr() {
|
||||||
local branches branch
|
local branches branch
|
||||||
branches=$(git branch --all | grep -v HEAD) &&
|
branches=$(git branch --all | grep -v HEAD) &&
|
||||||
branch=$(echo "$branches" | fzf-tmux -h 15 +m) &&
|
branch=$(echo "$branches" |
|
||||||
|
fzf-tmux -d $(( 2 + $(wc -l <<< "$branches") )) +m) &&
|
||||||
git checkout $(echo "$branch" | sed "s/.* //" | sed "s#remotes/[^/]*/##")
|
git checkout $(echo "$branch" | sed "s/.* //" | sed "s#remotes/[^/]*/##")
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user