From b2230bb1d39ead46c788c947d9474fe9dc5fc28a Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 8 Mar 2019 13:54:36 +0900 Subject: [PATCH] Updated Examples (completion) (markdown) --- Examples-(completion).md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Examples-(completion).md b/Examples-(completion).md index 6ff249e..a748935 100644 --- a/Examples-(completion).md +++ b/Examples-(completion).md @@ -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`):