0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

starship direnv プロンプトの表示が遅い問題

Last updated at Posted at 2023-12-13

direnv
https://direnv.net

ディレクトリ毎に環境変数を読み込んでくれるやつ

[WARN] - (starship::utils): Executing command "ruby" timed out.
[WARN] - (starship::utils): You can set command_timeout in your config to a higher value to allow longer-running commands to keep executing.

starshipで実行するコマンドが遅いという警告が表示される。
毎回出るのは煩わしい。

starship + asdf を使ってると遅いらしい。

$ brew uninstall direnv

$ asdf plugin-add direnv
$ asdf direnv setup --shell zsh --version latest

それでも警告が表示される場合

デフォルトは500msみたいなので1000msまで許容します。

~/.config/starship.toml
command_timeout = 1000

コマンドの実行時間が長くなってるだけで、実行できてない訳じゃないのでヨシとします。

関連記事

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?