Pure: Preprompt not displayed!

Created on 24 Sep 2016  ·  9Comments  ·  Source: sindresorhus/pure

Hello, i used this prompt for a long time, usually i never completly shut down my iMac, today i've installed an update and now my preprompt is not displayed! what this can be?

Most helpful comment

@Rawnly, I had the same issue until I removed the ZSH_THEME="pure"-line and added:

autoload -U promptinit; promptinit
prompt pure

And suddenly everything was back to normal :)

All 9 comments

I was about to post the same, the path is not displayed

a image:
pure

I've 'fixed' it but not resolved, i've copied preprompt in the .zsh-theme file and called it in the prompt but is all in line... I have another file who is bigger but if i use it like a theme, it gives me that

prompt_pure_setup:11: async: function definition file not found prompt_pure_async_tasks:3: command not found: async_start_worker prompt_pure_async_tasks:4: command not found: async_register_callback

Here an image of my provisional fix:

schermata 2016-09-24 alle 02 18 34

That sounds very weird.

What did you update, macOS?

Could you both answer the following questions:

  1. Are you using the latest version of pure?
  2. Have you made any modifications to pure?
  3. Have you tried following the instructions in the readme to reinstall
    pure?
  4. Are you using a zsh library, e.g. Oh-my-zsh or prezto?
  5. Can you provide a minimum reproduction case? E.g. the shortest .zshrc
    possible (nothing extra) that reproduces the issue?

On Sat, 24 Sep 2016, 3:19 am Federico Vitale, [email protected]
wrote:

I've 'fixed' it but not resolved, i've copied preprompt in the .zsh-theme
file and called it in the prompt but is all in line... I have another file
who is bigger but if i use it like a theme, it gives me that

prompt_pure_setup:11: async: function definition file not found
prompt_pure_async_tasks:3: command not found: async_start_worker
prompt_pure_async_tasks:4: command not found: async_register_callback

Here an image of my provisional fix:

[image: schermata 2016-09-24 alle 02 18 34]
https://cloud.githubusercontent.com/assets/16429579/18804589/35fac034-81fd-11e6-9e94-88fdce6187aa.png


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/sindresorhus/pure/issues/234#issuecomment-249330702,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAI_0Vg3ype0vEAXpAJ_2y6jyOSj-e3iks5qtGx0gaJpZM4KFfEv
.

I've update to Sierra, yes i have the latest, none modification except the "fix", now i'll try to reinstall, i use zsh oh-my-zsh,
my zshrc from line 1 to 14:

fpath=( "$HOME/.zsh/functions" ${fpath[@]} )
//If you come from bash you might have to change your $PATH.
//export PATH=$HOME/bin:/usr/local/bin:$PATH
//Path to your oh-my-zsh installation.
export ZSH=/Users/Rawnly/.oh-my-zsh
//Set name of the theme to load. Optionally, if you set this to "random"
//it'll load a random theme each time that oh-my-zsh is loaded.
//See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
autoload -U promptinit && promptinit
ZSH_THEME="pure"

@Rawnly, I had the same issue until I removed the ZSH_THEME="pure"-line and added:

autoload -U promptinit; promptinit
prompt pure

And suddenly everything was back to normal :)

@Rawnly

I have another file who is bigger but if i use it like a theme, it gives me that
...

You need this bigger file, I'm quite sure, since it _is_ pure. The fact that you get async errors when you try to use it tells me that the only thing missing is async from your $fpath.

Make sure you either npm install --global pure-prompt or follow the manual instructions in the readme to make sure async is in you $fpath.

I think we need to update the oh-my-zsh instructions, the previous instructions were clearer.

@mafredri solved with the previous instructions 👍

@mafredri Thanks! Solved! @tjoskar try this method!

Great, glad to hear it @Rawnly and @unluisco!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bigH picture bigH  ·  8Comments

sbmueller picture sbmueller  ·  11Comments

hyphaene picture hyphaene  ·  9Comments

ELLIOTTCABLE picture ELLIOTTCABLE  ·  11Comments

ebsen picture ebsen  ·  10Comments