1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-23 01:17:59 +00:00
prezto/modules/prompt/functions
Kaleb Elwert 9bdc1b35d5 Migrate sorin prompt to zsh-async (#1385)
This includes some improvements by @indrajitr in addition to the main migration.

The first step was to avoid PROMPT and RPROMPT modification when possible (which may help resolve some other issues as well relating to zsh crashes with the sorin prompt) then update the displayed git information in a separate variable rather than a command.

We use zsh-async for creating and running background tasks. The sorin prompt uses it to update git info without blocking the prompt from displaying (because of how long it can take). In the future it may be worth moving more tasks and more prompts to using this.

The move to zsh-async does make the git prompt slower in some circumstances (most noticeable in large repos), but this is a worthwhile tradeoff to avoid the cache file which had a number of potential security holes.

We have also switched to adding zsh-async as an external submodule (rather than the version bundled with pure) which may cause some migration headaches, but it will be worth it in the long run.
2017-07-24 11:55:02 -07:00
..
async Migrate sorin prompt to zsh-async (#1385) 2017-07-24 11:55:02 -07:00
prompt_agnoster_setup Add agnoster theme 2014-11-11 20:51:46 -05:00
prompt_cloud_setup Fix issue with several themes where errors occur 2014-12-08 17:58:15 -05:00
prompt_damoekri_setup [prompt] Rename helper function promptpwd to prompt-pwd for consistency 2017-07-22 13:13:00 -05:00
prompt_giddie_setup Update giddie theme 2014-11-05 22:52:38 -05:00
prompt_kylewest_setup Fix issue with several themes where errors occur 2014-12-08 17:58:15 -05:00
prompt_minimal_setup Fix theme function declaration style 2014-11-11 20:51:46 -05:00
prompt_nicoulaj_setup Only one newline at end of file 2014-10-09 23:38:15 -04:00
prompt_paradox_setup [prompt] Rename helper function promptpwd to prompt-pwd for consistency 2017-07-22 13:13:00 -05:00
prompt_peepcode_setup Convert the PeepCode theme to git-info 2014-11-11 20:51:47 -05:00
prompt_powerline_setup Add powerline theme 2014-11-11 20:51:46 -05:00
prompt_pure_setup Add pure theme 2014-11-11 20:51:46 -05:00
prompt_skwp_setup Fix issue with several themes where errors occur 2014-12-08 17:58:15 -05:00
prompt_smiley_setup Fix issue with several themes where errors occur 2014-12-08 17:58:15 -05:00
prompt_sorin_setup Migrate sorin prompt to zsh-async (#1385) 2017-07-24 11:55:02 -07:00
prompt_steeef_setup Only one newline at end of file 2014-10-09 23:38:15 -04:00
prompt-pwd [prompt] Rename helper function promptpwd to prompt-pwd for consistency 2017-07-22 13:13:00 -05:00