diff options
| author | Marc Cornellà <marc@mcornella.com> | 2024-04-03 19:55:46 +0200 |
|---|---|---|
| committer | Marc Cornellà <marc@mcornella.com> | 2024-04-03 20:09:19 +0200 |
| commit | ec1afe9dd683c36e6384db25fc1e95acbb0cbc7a (patch) | |
| tree | d0a3b68e7f3373fc333b68c0028e8074f243e1ea /lib | |
| parent | b43b84abc77850a3734c127c38afdd7cf7739dc6 (diff) | |
| download | zsh-ec1afe9dd683c36e6384db25fc1e95acbb0cbc7a.tar.gz zsh-ec1afe9dd683c36e6384db25fc1e95acbb0cbc7a.tar.bz2 zsh-ec1afe9dd683c36e6384db25fc1e95acbb0cbc7a.zip | |
feat(git)!: enable async git prompt (now for real)
BREAKING CHANGE: the new async prompt feature will render prompt information
asyncronously and degrade nicely when the calls take too long to finish, as
the prompt will already be first drawn and interactive. This is
enabled by default for the git prompt and themes that use it (`git_prompt_info`).
If you find that it's not working for you, please open an issue if one is
not already opened, and see https://github.com/ohmyzsh/ohmyzsh#disable-async-git-prompt
for how to turn it off.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/git.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/git.zsh b/lib/git.zsh index 96df5589d..4d6681c5b 100644 --- a/lib/git.zsh +++ b/lib/git.zsh @@ -38,7 +38,7 @@ function _omz_git_prompt_status() { } # Enable async prompt by default unless the setting is at false / no -if zstyle -t ':omz:alpha:lib:git' async-prompt; then +if zstyle -T ':omz:alpha:lib:git' async-prompt; then function git_prompt_info() { if [[ -n "$_OMZ_ASYNC_OUTPUT[_omz_git_prompt_status]" ]]; then echo -n "$_OMZ_ASYNC_OUTPUT[_omz_git_prompt_status]" |
