mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-25 01:47:25 +08:00
Compare commits
4 Commits
66651ae888
...
68d511526f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
68d511526f | ||
|
|
a79b37b954 | ||
|
|
928f692308 | ||
|
|
f5c03eae01 |
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" &|
|
||||||
@ -90,7 +90,7 @@ plugins=(... kubectl)
|
|||||||
| kga | `kubectl get all` | List all resources in ps format |
|
| kga | `kubectl get all` | List all resources in ps format |
|
||||||
| kgaa | `kubectl get all --all-namespaces` | List the requested object(s) across all namespaces |
|
| kgaa | `kubectl get all --all-namespaces` | List the requested object(s) across all namespaces |
|
||||||
| | | **Logs** |
|
| | | **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) |
|
| klf | `kubectl logs -f` | Stream the logs for a container or resource (follow) |
|
||||||
| | | **File copy** |
|
| | | **File copy** |
|
||||||
| kcp | `kubectl cp` | Copy files and directories to and from containers |
|
| kcp | `kubectl cp` | Copy files and directories to and from containers |
|
||||||
|
|||||||
@ -135,7 +135,7 @@ alias kga='kubectl get all'
|
|||||||
alias kgaa='kubectl get all --all-namespaces'
|
alias kgaa='kubectl get all --all-namespaces'
|
||||||
|
|
||||||
# Logs
|
# Logs
|
||||||
alias klog='kubectl logs'
|
alias kl='kubectl logs'
|
||||||
alias kl1h='kubectl logs --since 1h'
|
alias kl1h='kubectl logs --since 1h'
|
||||||
alias kl1m='kubectl logs --since 1m'
|
alias kl1m='kubectl logs --since 1m'
|
||||||
alias kl1s='kubectl logs --since 1s'
|
alias kl1s='kubectl logs --since 1s'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user