diff --git a/zsh/k8s.zsh b/zsh/k8s.zsh index 2872c64..1d4feae 100644 --- a/zsh/k8s.zsh +++ b/zsh/k8s.zsh @@ -14,6 +14,6 @@ slimline::section::k8s_context::async_task_complete() { slimline::section::k8s_context::render() { [[ -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}" \ } diff --git a/zsh/zshrc b/zsh/zshrc index 313f3a6..140dedd 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -1,22 +1,28 @@ -setopt correct_all autoload -U compinit && compinit autoload -U promptinit && promptinit + +setopt correct_all +zstyle ':completion:*' menu select + if [[ "$OSTYPE" == (darwin|freebsd)* ]]; then alias ls='ls -G' elif [[ "$OSTYPE" == linux* ]]; then alias ls='ls --color=tty' fi alias ll='ls -lh' + source ~/.zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh source ~/.zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh source ~/.dotfiles/zsh/k8s.zsh + 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_ROOT_FORMAT="%F{red}|user|%F{white}@%F{cyan}|host|%f" -SLIMLINE_VIRTUALENV_FORMAT="%F{white}[🐍 %F{blue}|basename|%F{white}]%f" -SLIMLINE_AWS_PROFILE_FORMAT="%F{white}[☁️ %F{blue}|profile|%F{white}]%f" # unicode 2601 +SLIMLINE_VIRTUALENV_FORMAT="%F{white}[venv:%F{blue}|basename|%F{white}]%f" +SLIMLINE_AWS_PROFILE_FORMAT="%F{white}[aws:%F{blue}|profile|%F{white}]%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 + [ -e ~/.zshrc.local ] && source ~/.zshrc.local