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

Compare commits

...

3 Commits

Author SHA1 Message Date
Tom Parker-Shemilt
415c8493a1
Merge 1a112c19e7 into a79b37b954 2026-01-01 11:45:41 -05: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
Tom Parker-Shemilt
1a112c19e7 Add kube-ps1 as dependency 2025-08-30 17:02:39 +01:00
4 changed files with 18 additions and 4 deletions

View File

@ -16,6 +16,14 @@ dependencies:
precopy: |
set -e
find . ! -name _gradle ! -name LICENSE -delete
plugins/kube-ps1:
repo: jonmosco/kube-ps1
branch: master
version: 54271c7e0c890779eab058c8a9661d88e410de72
precopy: |
set -e
rm -f kube-ps1.plugin.zsh
test -e kube-ps1.sh && mv kube-ps1.sh kube-ps1.plugin.zsh
plugins/history-substring-search:
repo: zsh-users/zsh-history-substring-search
branch: master

View File

@ -595,9 +595,15 @@ def main():
# Cache YAML version
DependencyStore.set(data)
dependencies = data["dependencies"]
for path in dependencies:
if len(sys.argv) > 1:
# argv is list of dependencies to run, default is all of them
dependency_list = sys.argv[1:]
else:
dependency_list = dependencies.keys()
for path in dependency_list:
dependency = Dependency(path, dependencies[path])
dependency.update_or_notify()

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'