mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-25 21:40:08 +00:00
better p10k help display
This commit is contained in:
parent
ca114f2508
commit
f2cffc978c
1 changed files with 6 additions and 5 deletions
|
@ -8185,8 +8185,9 @@ Part States:
|
||||||
show the part is displayed
|
show the part is displayed
|
||||||
hide the part is not displayed
|
hide the part is not displayed
|
||||||
print the part is printed in precmd; only applicable to empty_line and
|
print the part is printed in precmd; only applicable to empty_line and
|
||||||
ruler; looks better than show after calling \`clear\`; unlike
|
ruler; unlike show, the effects of print cannot be undone with hide;
|
||||||
show, the effects of print cannot be undone with hide
|
print used to look better after \`clear\` but this is no longer the
|
||||||
|
case; it's best to avoid it unless you know what you are doing
|
||||||
|
|
||||||
part-pattern is a glob pattern for parts. Examples:
|
part-pattern is a glob pattern for parts. Examples:
|
||||||
|
|
||||||
|
@ -8204,11 +8205,11 @@ Example: Bind Ctrl+P to toggle right prompt.
|
||||||
zle -N toggle-right-prompt
|
zle -N toggle-right-prompt
|
||||||
bindkey '^P' toggle-right-prompt
|
bindkey '^P' toggle-right-prompt
|
||||||
|
|
||||||
Example: Print the state of all prompt parts:
|
Example: Print the current state of all prompt parts:
|
||||||
|
|
||||||
local -A reply
|
typeset -A reply
|
||||||
p10k display -a '*'
|
p10k display -a '*'
|
||||||
printf '%%32s = %%q\\n' \${(@kv)reply}
|
printf '%%-32s = %%q\n' \${(@kv)reply} | sort
|
||||||
"
|
"
|
||||||
|
|
||||||
# 0 -- reset-prompt not blocked
|
# 0 -- reset-prompt not blocked
|
||||||
|
|
Loading…
Reference in a new issue