starshipが遅いとき何が遅いかみる
はじめに
promptのuiをstarshipを使っておしゃれにしてるのですが、たまに遅い時があって何が遅いか調べる時どうするかについてまとめる
結論
explainでみる
code: sh
$da
Here's a breakdown of your prompt:
"repo " (<1ms) - The current working directory
"on branch " (<1ms) - The active branch of the repo in your current directory
"$ " (401ms) - Symbol representing the state of the repo "on ☁️ miyashita@gmail.com " (<1ms) - The current GCP client configuration
"➜ " (<1ms) - A character (usually an arrow) beside where the text is entered in your terminal
"16:07:21" (<1ms) - The current local time
一発ですね。
私の場合、git statusを表示するのに401ms時間かかってました。