diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2020-05-09 12:30:11 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2020-05-09 12:30:11 +0300 |
commit | f2cffc978cb15cb047c1095c95e228b1d14cc9d3 (patch) | |
tree | 2c88bcba7d553892f97e407f467803938821c4a9 /internal/p10k.zsh | |
parent | ca114f250863f0725e66049d7b74af2e9ea52655 (diff) |
better `p10k help display`
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r-- | internal/p10k.zsh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index e34f48ea..ee36ace3 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -8185,8 +8185,9 @@ Part States: show the part is displayed hide the part is not displayed print the part is printed in precmd; only applicable to empty_line and - ruler; looks better than show after calling \`clear\`; unlike - show, the effects of print cannot be undone with hide + ruler; unlike 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: @@ -8204,11 +8205,11 @@ Example: Bind Ctrl+P to toggle right prompt. zle -N 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 '*' - printf '%%32s = %%q\\n' \${(@kv)reply} + printf '%%-32s = %%q\n' \${(@kv)reply} | sort " # 0 -- reset-prompt not blocked |