From 01cb06f654e19aaa9666e90e410e25e676136bd5 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Mon, 1 Jul 2024 13:33:02 -0500 Subject: [PATCH] go back to p10k --- home/private_dot_config/zsh/dot_zplugins | 2 +- .../zsh/plugins/prompt/prompt.plugin.zsh | 18 +++++++++--------- .../private_dot_config/zsh/themes/dot_p10k.zsh | 3 ++- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/home/private_dot_config/zsh/dot_zplugins b/home/private_dot_config/zsh/dot_zplugins index 0cd91c9..de712f2 100644 --- a/home/private_dot_config/zsh/dot_zplugins +++ b/home/private_dot_config/zsh/dot_zplugins @@ -17,7 +17,7 @@ junegunn/fzf path:shell/key-bindings.zsh wfxr/forgit # prompt -# romkatv/powerlevel10k kind:fpath +romkatv/powerlevel10k kind:fpath ${ZDOTDIR}/plugins/prompt # wrap-up diff --git a/home/private_dot_config/zsh/plugins/prompt/prompt.plugin.zsh b/home/private_dot_config/zsh/plugins/prompt/prompt.plugin.zsh index d7fd43f..cb45543 100644 --- a/home/private_dot_config/zsh/plugins/prompt/prompt.plugin.zsh +++ b/home/private_dot_config/zsh/plugins/prompt/prompt.plugin.zsh @@ -1,16 +1,16 @@ #!/usr/bin/env zsh -0=${(%):-%N} +# 0=${(%):-%N} # fpath+="${0:A:h}/functions" -# autoload -Uz promptinit && promptinit -# -# if zmodload zsh/terminfo && (( terminfo[colors] >= 256 )); then -# [[ ! -f $ZDOTDIR/themes/.p10k.zsh ]] || source $ZDOTDIR/themes/.p10k.zsh -# else -# [[ ! -f $ZDOTDIR/themes/.p10k-ascii.zsh ]] || source $ZDOTDIR/themes/.p10k-ascii.zsh -# fi -# prompt powerlevel10k +autoload -Uz promptinit && promptinit + +if zmodload zsh/terminfo && (( terminfo[colors] >= 256 )); then + [[ ! -f $ZDOTDIR/themes/.p10k.zsh ]] || source $ZDOTDIR/themes/.p10k.zsh +else + [[ ! -f $ZDOTDIR/themes/.p10k-ascii.zsh ]] || source $ZDOTDIR/themes/.p10k-ascii.zsh +fi +prompt powerlevel10k # eval "$(oh-my-posh init zsh --config $XDG_CONFIG_HOME/omp/config.yml)" diff --git a/home/private_dot_config/zsh/themes/dot_p10k.zsh b/home/private_dot_config/zsh/themes/dot_p10k.zsh index 5fcb799..011905f 100644 --- a/home/private_dot_config/zsh/themes/dot_p10k.zsh +++ b/home/private_dot_config/zsh/themes/dot_p10k.zsh @@ -147,7 +147,7 @@ # Connect left prompt lines with these symbols. # typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX='%5F╭─' - typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX='%5F·' + typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX='%5F' typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_PREFIX='%5F├─' # typeset -g POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX='%5F╰─' typeset -g POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX='' @@ -176,6 +176,7 @@ # prompt. # typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR='─' typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR='·' + typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR=' ' if [[ $POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR != ' ' ]]; then # The color of the filler. typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_FOREGROUND=5