zsh: don't use abbreviation unnecessarily
This commit is contained in:
parent
bc602776af
commit
a28fa3a3f8
1 changed files with 5 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
||||||
typeset -gA zfg=(
|
typeset -gA zfg=(
|
||||||
[rst]='%{%f%}'
|
[reset]='%{%f%}'
|
||||||
|
|
||||||
[black]='%{%F{black}%}'
|
[black]='%{%F{black}%}'
|
||||||
[red]='%{%F{red}%}'
|
[red]='%{%F{red}%}'
|
||||||
|
@ -38,7 +38,7 @@ fs_prompt_render_full() {
|
||||||
"$(fs_prompt_jobs)"
|
"$(fs_prompt_jobs)"
|
||||||
"$(fs_prompt_exec_time)"
|
"$(fs_prompt_exec_time)"
|
||||||
)
|
)
|
||||||
echo "\n${(@pj.$separator.)sections:#}${zfg[rst]}"
|
echo "\n${(@pj.$separator.)sections:#}${zfg[reset]}"
|
||||||
|
|
||||||
if ((PROMPT_EXIT_CODE == 0)); then
|
if ((PROMPT_EXIT_CODE == 0)); then
|
||||||
echo -n "${zfg[faded]}"
|
echo -n "${zfg[faded]}"
|
||||||
|
@ -48,11 +48,11 @@ fs_prompt_render_full() {
|
||||||
echo -n "${zfg[red]}"
|
echo -n "${zfg[red]}"
|
||||||
fi
|
fi
|
||||||
(($SHLVL > 1)) && printf '%.0s' {2..$SHLVL}
|
(($SHLVL > 1)) && printf '%.0s' {2..$SHLVL}
|
||||||
echo -n "❯ ${zfg[rst]}"
|
echo -n "❯ ${zfg[reset]}"
|
||||||
}
|
}
|
||||||
|
|
||||||
fs_prompt_render_compact() {
|
fs_prompt_render_compact() {
|
||||||
echo -n "${zfg[magenta]}❯ ${zfg[rst]}"
|
echo -n "${zfg[magenta]}❯ ${zfg[reset]}"
|
||||||
}
|
}
|
||||||
|
|
||||||
fs_prompt_exit_code() {
|
fs_prompt_exit_code() {
|
||||||
|
@ -229,7 +229,7 @@ fs_setup_prompt() {
|
||||||
if $use_transient_prompt; then
|
if $use_transient_prompt; then
|
||||||
autoload -Uz add-zle-hook-widget
|
autoload -Uz add-zle-hook-widget
|
||||||
add-zle-hook-widget line-finish fs_prompt_zle_line_finish
|
add-zle-hook-widget line-finish fs_prompt_zle_line_finish
|
||||||
PS2="${zfg[magenta]}%_❯${zfg[rst]} "
|
PS2="${zfg[magenta]}%_❯${zfg[reset]} "
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue