mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-09-28 05:56:07 +02:00
feat(hermes): add hermes plugin (#14111)
Co-authored-by: Robby Russell <robby@planetargon.com>
This commit is contained in:
co-authored by
Robby Russell
parent
32d7277ac3
commit
86ef6555e0
@@ -5,6 +5,7 @@ plugins/eza/ @pepoluan
|
||||
plugins/genpass/ @atoponce
|
||||
plugins/git-lfs/ @hellovietduc
|
||||
plugins/gitfast/ @felipec
|
||||
plugins/hermes/ @Uhm-why
|
||||
plugins/kube-ps1/ @mcornella
|
||||
plugins/kubectl/ @mcornella
|
||||
plugins/kubectx/ @mcornella
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
# hermes plugin
|
||||
|
||||
This plugin adds completions for the Hermes AI agent.
|
||||
|
||||
To use it, add `hermes` to the plugin array in your zshrc file:
|
||||
|
||||
```zsh
|
||||
plugins=(... hermes)
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```zsh
|
||||
hermes <TAB>
|
||||
```
|
||||
|
||||
## Common Workflows
|
||||
|
||||
```zsh
|
||||
# First time setup/updating overall config
|
||||
hermes setup
|
||||
|
||||
# Starting the tui chat
|
||||
hermes
|
||||
|
||||
# Changing default model
|
||||
hermes model
|
||||
```
|
||||
@@ -0,0 +1,15 @@
|
||||
if (( ! $+commands[hermes] )); then
|
||||
return
|
||||
fi
|
||||
|
||||
if [[ ! -f "$ZSH_CACHE_DIR/completions/_hermes" ]]; then
|
||||
typeset -g -A _comps
|
||||
autoload -Uz _hermes
|
||||
_comps[hermes]=_hermes
|
||||
fi
|
||||
|
||||
zmodload -F zsh/files b:zf_mv
|
||||
() {
|
||||
local TMPPREFIX="$ZSH_CACHE_DIR/completions/_hermes"
|
||||
zf_mv -f -- =( hermes completion zsh < /dev/null 2> /dev/null ) "$TMPPREFIX"
|
||||
} &|
|
||||
Reference in New Issue
Block a user