From a28fa3a3f81791cf80deaf28f1c8569215a64145 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Mon, 29 Jul 2024 17:51:41 +0200 Subject: [PATCH] zsh: don't use abbreviation unnecessarily --- config/zsh/prompt.zsh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config/zsh/prompt.zsh b/config/zsh/prompt.zsh index 2306489..df48410 100644 --- a/config/zsh/prompt.zsh +++ b/config/zsh/prompt.zsh @@ -1,5 +1,5 @@ typeset -gA zfg=( - [rst]='%{%f%}' + [reset]='%{%f%}' [black]='%{%F{black}%}' [red]='%{%F{red}%}' @@ -38,7 +38,7 @@ fs_prompt_render_full() { "$(fs_prompt_jobs)" "$(fs_prompt_exec_time)" ) - echo "\n${(@pj.$separator.)sections:#}${zfg[rst]}" + echo "\n${(@pj.$separator.)sections:#}${zfg[reset]}" if ((PROMPT_EXIT_CODE == 0)); then echo -n "${zfg[faded]}" @@ -48,11 +48,11 @@ fs_prompt_render_full() { echo -n "${zfg[red]}" fi (($SHLVL > 1)) && printf '󰅂%.0s' {2..$SHLVL} - echo -n "❯ ${zfg[rst]}" + echo -n "❯ ${zfg[reset]}" } fs_prompt_render_compact() { - echo -n "${zfg[magenta]}❯ ${zfg[rst]}" + echo -n "${zfg[magenta]}❯ ${zfg[reset]}" } fs_prompt_exit_code() { @@ -229,7 +229,7 @@ fs_setup_prompt() { if $use_transient_prompt; then autoload -Uz add-zle-hook-widget add-zle-hook-widget line-finish fs_prompt_zle_line_finish - PS2="${zfg[magenta]}%_❯${zfg[rst]} " + PS2="${zfg[magenta]}%_❯${zfg[reset]} " fi }