mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-17 15:53:39 -05:00
Add fcoc
@@ -7,6 +7,10 @@ Examples for fish shell
|
|||||||
function fco -d "Fuzzy-find and checkout a branch"
|
function fco -d "Fuzzy-find and checkout a branch"
|
||||||
git branch --all | grep -v HEAD | string trim | fzf | xargs git checkout
|
git branch --all | grep -v HEAD | string trim | fzf | xargs git checkout
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function fcoc -d "Fuzzy-find and checkout a commit"
|
||||||
|
git log --pretty=oneline --abbrev-commit --reverse | fzf +s | xargs git checkout
|
||||||
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
### SSH
|
### SSH
|
||||||
|
|||||||
Reference in New Issue
Block a user