mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 00:03:39 -05:00
Updated Examples (completion) (markdown)
@@ -67,7 +67,7 @@ _fzf_complete_pass() {
|
|||||||
[ -n "$BASH" ] && complete -F _fzf_complete_pass -o default -o bashdefault 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):
|
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`):
|
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`):
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user