Open mikebronner opened 2 years ago
Hi @mikebronner
My understanding is fig should be above powerlevel10k, even with instant prompt.
Could you try uninstalling (fig uninstall
) and then re-installing and clicking yes to that question?
You may have to manually move fig's preinstall hooks to the top of ~/.zshrc
and bashrc, zprofile etc if they exist.
@grant0417 @mschrage @sullivan-sean @SeparateRecords please correct me if i'm wrong
Also, run fig
rather than fig launch
Hi @mikebronner
My understanding is fig should be above powerlevel10k, even with instant prompt.
Could you try uninstalling (
fig uninstall
) and then re-installing and clicking yes to that question?You may have to manually move fig's preinstall hooks to the top of
~/.zshrc
and bashrc, zprofile etc if they exist.@grant0417 @mschrage @sullivan-sean @SeparateRecords please correct me if i'm wrong
If the instant prompt script section is not the first entry in the file, we get the following warning:
[WARNING]: Console output during zsh initialization detected.
When using Powerlevel10k with instant prompt, console output during zsh
initialization may indicate issues.
You can:
- Recommended: Change ~/.zshrc so that it does not perform console I/O
after the instant prompt preamble. See the link below for details.
* You will not see this error message again.
* Zsh will start quickly and prompt will update smoothly.
- Suppress this warning either by running p10k configure or by manually
defining the following parameter:
typeset -g POWERLEVEL9K_INSTANT_PROMPT=quiet
* You will not see this error message again.
* Zsh will start quickly but prompt will jump down after initialization.
- Disable instant prompt either by running p10k configure or by manually
defining the following parameter:
typeset -g POWERLEVEL9K_INSTANT_PROMPT=off
* You will not see this error message again.
* Zsh will start slowly.
- Do nothing.
* You will see this error message every time you start zsh.
* Zsh will start quickly but prompt will jump down after initialization.
For details, see:
https://github.com/romkatv/powerlevel10k/blob/master/README.md#instant-prompt
-- console output produced during zsh initialization follows --
compinit: initialization aborted
/Users/mike/.local/share/fig/plugins/npm-run.plugin.zsh_akoenig/npm-run.plugin.zsh:17: command not found: compdef
compinit: initialization aborted
/Users/mike/.local/share/fig/plugins/zsh-artisan_jessarcher/artisan.plugin.zsh:58: command not found: compdef
It appears that some Fig plugins may cause terminal output, which causes this issue, so because of that it cannot be before the instant prompt.
Also, run
fig
rather thanfig launch
this works, and shows the following prompt output:
╰─❯ fig ─╯
→ Launching Fig...
→ Opening https://app.fig.io...
Unfortunately it does not open the browser, though -- nothing happens.
Sanity checks
fig doctor
in the affected terminal sessionfig restart
and tested again (tell us if that fixed it)Issue Details
Followed the instructions at https://fig.io/support/autocomplete/ssh with the following output:
I answered no because when using the PowerLevel10K theme, FIG cannot be the first line, but instead the P10K instant prompt must be the first line:
I then ran
fig launch
:I then tried running
fig restart
:And then
fig doctor
:This latter output appears related to #1679
Environment