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

Updated Examples (completion) (markdown)

Junegunn Choi
2019-03-08 13:54:36 +09:00
parent 28b7fe6189
commit b2230bb1d3

@@ -67,7 +67,7 @@ _fzf_complete_pass() {
[ -n "$BASH" ] && complete -F _fzf_complete_pass -o default -o bashdefault pass
```
### Complete hg update/hg merge
### [ZSH] Complete hg update/hg merge
If you need to add branch name completion for a subset of hg commands, e.g. hg up, hg merge, you can use technique as follows (zsh completion):
@@ -88,7 +88,7 @@ _fzf_complete_hg_post() {
}
```
### Complete `git co` (for example)
### [ZSH] Complete `git co` (for example)
You can use the same approach as above to complete any git command. In the example below, completion is triggered on `git co` (usual alias for `git checkout`):