mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-13 16:04:08 +08:00
Merge 928f692308 into 72acd2ca90
This commit is contained in:
commit
a398265fc9
9
plugins/finch/README.md
Normal file
9
plugins/finch/README.md
Normal file
@ -0,0 +1,9 @@
|
||||
# Finch plugin
|
||||
|
||||
This plugin adds auto-completion and aliases for [finch](https://runfinch.com/).
|
||||
|
||||
To use it add `finch` to the plugins array in your zshrc file.
|
||||
|
||||
```zsh
|
||||
plugins=(... finch)
|
||||
```
|
||||
13
plugins/finch/finch.plugin.zsh
Normal file
13
plugins/finch/finch.plugin.zsh
Normal file
@ -0,0 +1,13 @@
|
||||
if (( ! $+commands[finch] )); then
|
||||
return
|
||||
fi
|
||||
|
||||
# If the completion file doesn't exist yet, we need to autoload it and
|
||||
# bind it to `finch`. Otherwise, compinit will have already done that.
|
||||
if [[ ! -f "$ZSH_CACHE_DIR/completions/_finch" ]]; then
|
||||
typeset -g -A _comps
|
||||
autoload -Uz _finch
|
||||
_comps[finch]=_finch
|
||||
fi
|
||||
|
||||
finch completion zsh 2> /dev/null >| "$ZSH_CACHE_DIR/completions/_finch" &|
|
||||
Loading…
Reference in New Issue
Block a user