diff --git a/.config/zsh/.p10k.zsh b/.config/zsh/.p10k.zsh index ac9d00b..fd986f3 100644 --- a/.config/zsh/.p10k.zsh +++ b/.config/zsh/.p10k.zsh @@ -1,7 +1,7 @@ -# Generated by Powerlevel10k configuration wizard on 2023-02-17 at 17:22 PST. -# Based on romkatv/powerlevel10k/config/p10k-pure.zsh, checksum 35142. -# Wizard options: nerdfont-complete + powerline, large icons, pure, original, 12h time, -# 1 line, sparse, instant_prompt=quiet. +# Generated by Powerlevel10k configuration wizard on 2022-07-20 at 21:44 PDT. +# Based on romkatv/powerlevel10k/config/p10k-pure.zsh. +# Wizard options: nerdfont-complete + powerline, small icons, pure, original, rprompt, +# 12h time, 1 line, sparse, instant_prompt=verbose. # Type `p10k configure` to generate another config. # # Config file for Powerlevel10k with the style of Pure (https://github.com/sindresorhus/pure). @@ -35,7 +35,7 @@ unset -m '(POWERLEVEL9K_*|DEFAULT_USER)~POWERLEVEL9K_GITSTATUS_DIR' # Zsh >= 5.1 is required. - [[ $ZSH_VERSION == (5.<1->*|<6->.*) ]] || return + autoload -Uz is-at-least && is-at-least 5.1 || return # Prompt colors. local grey='242' @@ -46,22 +46,26 @@ local cyan='6' local white='7' + # Show prompt segment "kubecontext" only when the command you are typing invokes one of these tools. + typeset -g POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND='kubectl|helm|kubens' + # Left prompt segments. typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=( - context # user@host + # context # user@host + kubecontext # context/namespace dir # current directory vcs # git status - command_execution_time # previous command duration - virtualenv # python virtual environment + # command_execution_time # previous command duration + # virtualenv # python virtual environment prompt_char # prompt symbol ) # Right prompt segments. typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=( - # command_execution_time # previous command duration - # virtualenv # python virtual environment - # context # user@host - time # current time + command_execution_time # previous command duration + virtualenv # python virtual environment + context # user@host + # time # current time ) # Basic style options that define the overall prompt look. @@ -154,6 +158,8 @@ # their preceding commands. typeset -g POWERLEVEL9K_TIME_UPDATE_ON_COMMAND=false + typeset -g POWERLEVEL9K_EXPERIMENTAL_TIME_REALTIME=true + # Transient prompt works similarly to the builtin transient_rprompt option. It trims down prompt # when accepting a command line. Supported values: # @@ -187,7 +193,8 @@ } # Tell `p10k configure` which file it should overwrite. -typeset -g POWERLEVEL9K_CONFIG_FILE=${${(%):-%x}:a} +typeset -g POWERLEVEL9K_CONFIG_FILE=${${(%):-%x}:a} + (( ${#p10k_config_opts} )) && setopt ${p10k_config_opts[@]} 'builtin' 'unset' 'p10k_config_opts' diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 5502a80..1d2044d 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -75,6 +75,7 @@ __git_files () { # PLUGINS zinit ice depth=1; zinit light romkatv/powerlevel10k + # append completions to fpath fpath=(/bedrock/share/zsh/completion /bedrock/cross/zsh-completion $fpath) diff --git a/.local/share/pkglist b/.local/share/pkglist index 27573fc..6db0c9f 100644 --- a/.local/share/pkglist +++ b/.local/share/pkglist @@ -39,6 +39,7 @@ goreleaser gospt-git gping grub +haunt-go-git highlight htop intel-media-driver