Pure: Prompt doesn't appear anymore

Created on 29 Dec 2019  路  12Comments  路  Source: sindresorhus/pure

General information

System report (output of prompt_pure_system_report):

- Zsh: zsh 5.7.1 (x86_64-pc-linux-gnu)
- Operating system: Linux (#1 SMP PREEMPT Tue, 24 Dec 2019 04:36:53 +0000)
- Terminal program:  Kitty
- Git: git version 2.24.1
- Pure state:
    - username: `''`
    - prompt: `鉂痐
    - version: `1.10.3`
- Virtualenv: `export VIRTUAL_ENV_DISABLE_PROMPT=12`
- Prompt: `typeset -g PROMPT=$'%F{${prompt_pure_colors[path]}}%~%f
%{
%}%(12V.%F{$prompt_pure_colors[virtualenv]}%12v%f .)%(?.%F{$prompt_pure_colors[prompt:success]}.%F{$prompt_pure_colors[prompt:error]})${prompt_pure_state[prompt]}%f '`
- Detected frameworks: None

Other information

Most helpful comment

image
Here is an example of a git repository. Notice how the branch doesn't appear anymore and it doesn't recognize if it's dirty or not.

All 12 comments

What's the output of git status in a directory where you expect Git prompt to appear?

image
Here is an example of a git repository. Notice how the branch doesn't appear anymore and it doesn't recognize if it's dirty or not.

Yep, seems broken. If git status works, I would expect Pure to show Git info in prompt.

I'm seeing similar issues to this, but sporadically. Most of the time it works, but sometimes it will fail to update the branch status on the prompt or show the previous branch when checking out a new branch. If I close the terminal out and restart, it shows the correct information again.

In .zshrc (oh-myzsh) I disabling/enabling the git plugin and it works again

In .zshrc (oh-myzsh) I disabling/enabling the git plugin and it works again

Didn't work for me, with disabling you mean just commenting the line in the .zshrc file?

git plugin in Oh My Zsh simply defines a bunch of aliases. It cannot affect Pure in any way.

Just want to remind everyone that I have nothing else in zshrc other than autocompletions and aliases.

git plugin in Oh My Zsh simply defines a bunch of aliases. It cannot affect Pure in any way.

I know that but I just toggle it git plugin and works for me

Didn't work for me, with disabling you mean just commenting the line in the .zshrc file?

no, just delete it from plugin list and put it again

also I uninstall it from npm and install it with yarn

I've the same issue here... anyone found a solution?

I've the same issue here... anyone found a solution?

This issue stems from zsh-async. Sometimes the background process dies and no one seems to know why. All themes that use zsh-async are affected. See https://github.com/mafredri/zsh-async/issues/33 and https://github.com/sindresorhus/pure/issues/455. The latter issue links to a patch that attempts to detect background job crashes and to recover from them. It doesn't fix the underlying problem that leads to crashes in the first place. The only reliable solution right now is to use a theme that doesn't utilize zsh-async.

For everyone affected by this issue, please give #543 a spin.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

opticalgenesis picture opticalgenesis  路  9Comments

erusev picture erusev  路  4Comments

tyrollins picture tyrollins  路  4Comments

victorronnow picture victorronnow  路  7Comments

ianchesal picture ianchesal  路  3Comments