powerlvel10k
This commit is contained in:
parent
c5e00e68cf
commit
e237442a7f
7 changed files with 1106 additions and 17 deletions
|
@ -1,6 +1,6 @@
|
|||
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
|
||||
git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
|
||||
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
|
||||
#git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
|
||||
#git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
|
||||
#git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
|
||||
export ZSH=$HOME/.oh-my-zsh
|
||||
ZSH_THEME="agnoster"
|
||||
CASE_SENSITIVE="true"
|
||||
|
|
14
legacy/slimline.zsh
Normal file
14
legacy/slimline.zsh
Normal file
|
@ -0,0 +1,14 @@
|
|||
#git clone --recursive https://github.com/mengelbrecht/slimline.git ~/.zsh/themes/slimline
|
||||
source ~/.dotfiles/zsh/slimline_k8s_ctx.zsh
|
||||
source ~/.dotfiles/zsh/slimline_k8s_ns.zsh
|
||||
|
||||
SLIMLINE_LEFT_PROMPT_SECTIONS="user_host_info cwd symbol"
|
||||
SLIMLINE_RIGHT_PROMPT_SECTIONS="exit_status execution_time git virtualenv aws_profile k8s_context k8s_namespace"
|
||||
SLIMLINE_USER_HOST_INFO_FORMAT="%F{green}|user|%F{white}@%F{cyan}|host|%f"
|
||||
SLIMLINE_USER_HOST_INFO_ROOT_FORMAT="%F{red}|user|%F{white}@%F{cyan}|host|%f"
|
||||
SLIMLINE_VIRTUALENV_FORMAT="venv:%F{blue}|basename|%f"
|
||||
SLIMLINE_AWS_PROFILE_FORMAT="aws:%F{blue}|profile|%f"
|
||||
SLIMLINE_SYMBOL_WORKING_FORMAT="%F{red}➜%f"
|
||||
SLIMLINE_SYMBOL_READY_FORMAT="%F{243}➜%f"
|
||||
SLIMLINE_MAX_EXEC_TIME=2
|
||||
source ~/.zsh/themes/slimline/slimline.zsh
|
18
legacy/slimline_k8s_ctx.zsh
Normal file
18
legacy/slimline_k8s_ctx.zsh
Normal file
|
@ -0,0 +1,18 @@
|
|||
slimline::section::k8s_context::precmd() {
|
||||
unset slimline_section_k8s_context_output
|
||||
}
|
||||
|
||||
slimline::section::k8s_context::async_task() {
|
||||
kubectl config current-context
|
||||
}
|
||||
|
||||
slimline::section::k8s_context::async_task_complete() {
|
||||
slimline_section_k8s_context_output=$2
|
||||
}
|
||||
|
||||
slimline::section::k8s_context::render() {
|
||||
[[ -z "${slimline_section_k8s_context_output}" ]] && return
|
||||
|
||||
slimline::utils::expand "k8s_context" "ctx:%F{blue}|output|%f" \
|
||||
"output" "${slimline_section_k8s_context_output}"
|
||||
}
|
18
legacy/slimline_k8s_ns.zsh
Normal file
18
legacy/slimline_k8s_ns.zsh
Normal file
|
@ -0,0 +1,18 @@
|
|||
slimline::section::k8s_namespace::precmd() {
|
||||
unset slimline_section_k8s_namespace_output
|
||||
}
|
||||
|
||||
slimline::section::k8s_namespace::async_task() {
|
||||
kubectl config view --minify --output 'jsonpath={..namespace}'
|
||||
}
|
||||
|
||||
slimline::section::k8s_namespace::async_task_complete() {
|
||||
slimline_section_k8s_namespace_output=$2
|
||||
}
|
||||
|
||||
slimline::section::k8s_namespace::render() {
|
||||
[[ -z "${slimline_section_k8s_namespace_output}" ]] && return
|
||||
|
||||
slimline::utils::expand "k8s_namespace" "ns:%F{blue}|output|%f" \
|
||||
"output" "${slimline_section_k8s_namespace_output}"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue