質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
terminal

Terminalは、Apple社のmacOSに標準で付属しているUNIX端末エミュレータ。UNIXコマンドによってMacの操作および設定を行うことができます。

MacOS(OSX)

MacOSとは、Appleの開発していたGUI(グラフィカルユーザーインターフェース)を採用したオペレーションシステム(OS)です。Macintoshと共に、市場に出てGUIの普及に大きく貢献しました。

zsh

zshは、UNIX系OSのシェルの1つです。 cshやksn系のコマンドライン編集機能も実装されたシェルです。

Q&A

0回答

1281閲覧

powerlevel10kを入れたときにWARNING文が表示されてしまう

DISK131

総合スコア1

terminal

Terminalは、Apple社のmacOSに標準で付属しているUNIX端末エミュレータ。UNIXコマンドによってMacの操作および設定を行うことができます。

MacOS(OSX)

MacOSとは、Appleの開発していたGUI(グラフィカルユーザーインターフェース)を採用したオペレーションシステム(OS)です。Macintoshと共に、市場に出てGUIの普及に大きく貢献しました。

zsh

zshは、UNIX系OSのシェルの1つです。 cshやksn系のコマンドライン編集機能も実装されたシェルです。

0グッド

0クリップ

投稿2021/06/17 09:01

編集2022/01/12 10:55

iTerm2をinstallし、zinitを導入して、powerlevel10kを入れたのですが、iTerm起動時に下記のような注意書きが表示されてしまいます。何が原因かわかる方はいらっしゃいますか?

[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 -- source ~/powerlevel10k/powerlevel10k.zsh-theme

.zshrcの中身

# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. # Initialization code that may require console input (password prompts, [y/n] # confirmations, etc.) must go above this block; everything else may go below. if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" fi # 中略 ### Added by Zinit's installer if [[ ! -f $HOME/.zinit/bin/zinit.zsh ]]; then print -P "%F{33}▓▒░ %F{220}Installing %F{33}DHARMA%F{220} Initiative Plugin Manager (%F{33}zdharma/zinit%F{220})…%f" command mkdir -p "$HOME/.zinit" && command chmod g-rwX "$HOME/.zinit" command git clone https://github.com/zdharma/zinit "$HOME/.zinit/bin" && \ print -P "%F{33}▓▒░ %F{34}Installation successful.%f%b" || \ print -P "%F{160}▓▒░ The clone has failed.%f%b" fi source "$HOME/.zinit/bin/zinit.zsh" autoload -Uz _zinit (( ${+_comps} )) && _comps[zinit]=_zinit # Load a few important annexes, without Turbo # (this is currently required for annexes) zinit light-mode for \ zinit-zsh/z-a-rust \ zinit-zsh/z-a-as-monitor \ zinit-zsh/z-a-patch-dl \ zinit-zsh/z-a-bin-gem-node ### End of Zinit's installer chunk echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' zinit ice depth=1; zinit light romkatv/powerlevel10k # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問