mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
Merge 928f692308 into e9fc134236
This commit is contained in:
commit
04da55db27
2 changed files with 22 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue