no icons ;-)
This commit is contained in:
parent
28fa084832
commit
f18f05513b
@ -14,6 +14,6 @@ slimline::section::k8s_context::async_task_complete() {
|
|||||||
slimline::section::k8s_context::render() {
|
slimline::section::k8s_context::render() {
|
||||||
[[ -z "${slimline_section_k8s_context_output}" ]] && return
|
[[ -z "${slimline_section_k8s_context_output}" ]] && return
|
||||||
|
|
||||||
slimline::utils::expand "k8s_context" "[☸️ %F{blue}|output|%f]" \
|
slimline::utils::expand "k8s_context" "[k8s:%F{blue}|output|%f]" \
|
||||||
"output" "${slimline_section_k8s_context_output}" \
|
"output" "${slimline_section_k8s_context_output}" \
|
||||||
}
|
}
|
||||||
|
12
zsh/zshrc
12
zsh/zshrc
@ -1,22 +1,28 @@
|
|||||||
setopt correct_all
|
|
||||||
autoload -U compinit && compinit
|
autoload -U compinit && compinit
|
||||||
autoload -U promptinit && promptinit
|
autoload -U promptinit && promptinit
|
||||||
|
|
||||||
|
setopt correct_all
|
||||||
|
zstyle ':completion:*' menu select
|
||||||
|
|
||||||
if [[ "$OSTYPE" == (darwin|freebsd)* ]]; then
|
if [[ "$OSTYPE" == (darwin|freebsd)* ]]; then
|
||||||
alias ls='ls -G'
|
alias ls='ls -G'
|
||||||
elif [[ "$OSTYPE" == linux* ]]; then
|
elif [[ "$OSTYPE" == linux* ]]; then
|
||||||
alias ls='ls --color=tty'
|
alias ls='ls --color=tty'
|
||||||
fi
|
fi
|
||||||
alias ll='ls -lh'
|
alias ll='ls -lh'
|
||||||
|
|
||||||
source ~/.zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
source ~/.zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||||
source ~/.zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
source ~/.zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||||
source ~/.dotfiles/zsh/k8s.zsh
|
source ~/.dotfiles/zsh/k8s.zsh
|
||||||
|
|
||||||
SLIMLINE_RIGHT_PROMPT_SECTIONS="execution_time git aws_profile virtualenv k8s_context"
|
SLIMLINE_RIGHT_PROMPT_SECTIONS="execution_time git aws_profile virtualenv k8s_context"
|
||||||
SLIMLINE_USER_HOST_INFO_FORMAT="%F{green}|user|%F{white}@%F{cyan}|host|%f"
|
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_USER_HOST_INFO_ROOT_FORMAT="%F{red}|user|%F{white}@%F{cyan}|host|%f"
|
||||||
SLIMLINE_VIRTUALENV_FORMAT="%F{white}[🐍 %F{blue}|basename|%F{white}]%f"
|
SLIMLINE_VIRTUALENV_FORMAT="%F{white}[venv:%F{blue}|basename|%F{white}]%f"
|
||||||
SLIMLINE_AWS_PROFILE_FORMAT="%F{white}[☁️ %F{blue}|profile|%F{white}]%f" # unicode 2601
|
SLIMLINE_AWS_PROFILE_FORMAT="%F{white}[aws:%F{blue}|profile|%F{white}]%f"
|
||||||
SLIMLINE_SYMBOL_WORKING_FORMAT="%F{red}➜%f"
|
SLIMLINE_SYMBOL_WORKING_FORMAT="%F{red}➜%f"
|
||||||
SLIMLINE_SYMBOL_READY_FORMAT="%F{243}➜%f"
|
SLIMLINE_SYMBOL_READY_FORMAT="%F{243}➜%f"
|
||||||
SLIMLINE_MAX_EXEC_TIME=2
|
SLIMLINE_MAX_EXEC_TIME=2
|
||||||
source ~/.zsh/themes/slimline/slimline.zsh
|
source ~/.zsh/themes/slimline/slimline.zsh
|
||||||
|
|
||||||
[ -e ~/.zshrc.local ] && source ~/.zshrc.local
|
[ -e ~/.zshrc.local ] && source ~/.zshrc.local
|
||||||
|
Loading…
Reference in New Issue
Block a user