mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-01 21:51:40 +02:00
53414: attempting to preview the "restore" keyword is nonsensical
This commit is contained in:
parent
d70b70ada6
commit
b707a60351
2 changed files with 15 additions and 3 deletions
|
@ -1,5 +1,9 @@
|
|||
2025-03-31 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* Frank Dana: 53414: Functions/Prompts/prompt_restore_setup:
|
||||
attempting to preview the "restore" keyword is nonsensical,
|
||||
use a handler function to avoid messing up terminal output
|
||||
|
||||
* Frank Dana: 53413: Functions/Prompts/promptinit: "print -rP"
|
||||
in preview, in case of special characters
|
||||
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
# Damn that was easy
|
||||
zstyle -t :prompt-theme cleanup
|
||||
zstyle -t :prompt-theme restore
|
||||
prompt_restore_setup () {
|
||||
# Damn that was easy
|
||||
zstyle -t :prompt-theme cleanup
|
||||
zstyle -t :prompt-theme restore
|
||||
}
|
||||
|
||||
prompt_restore_preview () {
|
||||
echo "The prompt command 'restore' is not a theme and cannot be previewed."
|
||||
}
|
||||
|
||||
prompt_restore_setup "$@"
|
||||
|
|
Loading…
Reference in a new issue