1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2026-01-23 01:17:24 +08:00

Compare commits

...

3 Commits

Author SHA1 Message Date
Simon Marty
66651ae888
Merge 928f692308 into 0f45f82c0a 2025-12-22 13:53:24 +01:00
Simon Marty
928f692308
Remove alias per contribution guidelines 2025-09-30 21:06:39 -07:00
Simon Marty
f5c03eae01
Add plugin for finch 2025-09-30 21:02:53 -07:00
2 changed files with 22 additions and 0 deletions

9
plugins/finch/README.md Normal file
View 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)
```

View 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" &|