mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 00:03:39 -05:00
Updated Examples (completion) (markdown)
@@ -109,4 +109,17 @@ _fzf_complete_git() {
|
||||
_fzf_complete_git_post() {
|
||||
awk '{print $1}'
|
||||
}
|
||||
```
|
||||
|
||||
### Custom trigger-less completion
|
||||
If you want to remove the `**` trigger just for certain completions, you can achieve this like so:
|
||||
|
||||
```
|
||||
_fzf_complete_ssh_notrigger() {
|
||||
FZF_COMPLETION_TRIGGER='' _fzf_complete_ssh
|
||||
}
|
||||
|
||||
complete -o bashdefault -o default -F _fzf_complete_ssh_notrigger ssh
|
||||
complete -o bashdefault -o default -F _fzf_complete_ssh_notrigger mosh
|
||||
complete -o bashdefault -o default -F _fzf_complete_ssh_notrigger ss
|
||||
```
|
||||
Reference in New Issue
Block a user