mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-25 01:47:25 +08:00
Compare commits
3 Commits
01f88e3a0b
...
78b353cb56
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
78b353cb56 | ||
|
|
a79b37b954 | ||
|
|
8f774beeaa |
@ -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'
|
||||||
|
|||||||
@ -4,8 +4,8 @@ export LSCOLORS=dxFxCxDxBxegedabagacad
|
|||||||
|
|
||||||
local git_branch='$(git_prompt_info)%{$reset_color%}$(git_remote_status)'
|
local git_branch='$(git_prompt_info)%{$reset_color%}$(git_remote_status)'
|
||||||
|
|
||||||
PROMPT="%{$fg[green]%}╭─%n@%m %{$reset_color%}%{$fg[yellow]%}in %~ %{$reset_color%}${git_branch}
|
PROMPT="%{%(#~$fg[red]~$fg[green])%}╭─%n@%m %{$reset_color%}%{$fg[yellow]%}in %~ %{$reset_color%}${git_branch}
|
||||||
%{$fg[green]%}╰\$ %{$reset_color%}"
|
%{%(#~$fg[red]~$fg[green])%}╰%(#~#~\$) %{$reset_color%}"
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[yellow]%}on "
|
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[yellow]%}on "
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user