Marlon Richert
7383baf4cf
48853: improved handling of theme resets when changing prompt themes, especially for theme preview
2021-05-16 21:18:06 -07:00
Arseny Maslennikov
8b67c36d92
48094: apply cleanup commands of the current theme on any theme change
...
* Rename zstyle `cleanup' on the context `:prompt-theme' to `restore'
everywhere but in prompt_cleanup(). It is only used as a restore
mechanism now.
* Ensure prompt_cleanup() continues to store its command list in the
`cleanup' style.
* Clean up before theme switch at the end of set_prompt().
* Prepend every use of prompt_*_setup (which might modify the shell
state in ways that require cleanup) with a cleanup run.
* Adjust `prompt restore' to do both parts of the newly split restore
mechanism, cleanup first.
2021-02-22 20:29:55 -08:00
Arseny Maslennikov
5c60ec46ec
47867: Fix RPROMPT typo in prompinit
2021-02-19 18:39:22 -06:00
Barton E. Schaefer
43e55a9bcd
41472: introduce cleanup hooks default and restore special themes, and update documentation
2017-07-29 16:58:39 -07:00
Barton E. Schaefer
14487ff5cc
37192: silence WARN_CREATE_GLOBAL in prompt themes
2015-11-22 10:19:49 -08:00
Mikael Magnusson
150dc9021b
30461, 30462 (tweaked): add missing local for match, mbegin and mend
2012-05-02 13:09:37 +00:00
Peter Stephenson
942fe9d6de
30087: Christian Höltje: remove any hooks with prompt theme
2012-01-05 20:04:09 +00:00
Bart Schaefer
c33f3b0747
30020: prevent prompt_opts and zle_highlight from leaking out of
...
prompt_preview_theme
2011-12-13 17:43:55 +00:00
Peter Stephenson
4de3dbac16
c.f. users/15202: use "autoload -Uz" consistently
2010-07-28 14:01:12 +00:00
Peter Stephenson
10c2f225fd
c.f. users/15202: use "autoload -Uz" consistently
2010-07-28 13:33:52 +00:00
Peter Stephenson
ec48872b7c
Frank Terbeck: 26104: eliminate WARN_CREATE_GLOBAL warnings
2008-12-02 09:33:56 +00:00
Bart Schaefer
27d940901f
Quote expansion of prompt_opts in prompt() because zsh emulation is by
...
necessity not enforced there.
2008-10-10 09:53:48 +00:00
Peter Stephenson
ffabab4e74
25276: use autoload -z for zsh-autoload functions
2008-07-11 19:12:22 +00:00
Peter Stephenson
c894f695cc
25095: thorough modernization of prompt theme system
2008-05-17 22:42:16 +00:00
Bart Schaefer
0abc65ac66
24043: remove one "emulate" that was too many
2007-10-31 16:03:07 +00:00
Bart Schaefer
9b33f07e10
zsh-users/12008: Assert zsh emulation to avoid setopt problems; don't try
...
to run precmd or preexec if they don't exist.
2007-10-14 16:34:15 +00:00
Peter Stephenson
d09274dcd8
22739: arno: different test for theme in prompt -c
2006-09-21 16:48:21 +00:00
Bart Schaefer
d0a12b9d7b
Misc. prompt theme repairs
2005-05-10 04:38:54 +00:00
Bart Schaefer
dc1f7c5a34
Create "User Contributions" doc and make some assoctiated changes.
2000-09-04 21:10:29 +00:00
Bart Schaefer
21f6b9d14c
11866: More ANSI color stuff; preserve more state during prompt previewing.
2000-06-11 22:21:33 +00:00
Tanaka Akira
d3170c8ee6
Initial revision
1999-10-04 22:57:19 +00:00