1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2026-01-22 01:07:36 +08:00

Compare commits

...

4 Commits

Author SHA1 Message Date
Simon Marty
68d511526f
Merge 928f692308 into a79b37b954 2026-01-02 18:05:27 -08:00
Marc Cornellà
a79b37b954 Revert "fix(kubectl)!: change alias from kl to klog (#13204)"
This reverts commit 475b18f39a.
2025-12-30 09:48:43 +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
4 changed files with 24 additions and 2 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" &|

View File

@ -90,7 +90,7 @@ plugins=(... kubectl)
| kga | `kubectl get all` | List all resources in ps format |
| kgaa | `kubectl get all --all-namespaces` | List the requested object(s) across all namespaces |
| | | **Logs** |
| klog | `kubectl logs` | Print the logs for a container or resource |
| kl | `kubectl logs` | Print the logs for a container or resource |
| klf | `kubectl logs -f` | Stream the logs for a container or resource (follow) |
| | | **File copy** |
| kcp | `kubectl cp` | Copy files and directories to and from containers |

View File

@ -135,7 +135,7 @@ alias kga='kubectl get all'
alias kgaa='kubectl get all --all-namespaces'
# Logs
alias klog='kubectl logs'
alias kl='kubectl logs'
alias kl1h='kubectl logs --since 1h'
alias kl1m='kubectl logs --since 1m'
alias kl1s='kubectl logs --since 1s'