0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Claude Codeのステータスラインが表示されない時の解決法

Posted at

環境

  • Claude Code v1.0.111
  • Linux (Ubuntu)

問題

こちらの記事を参考にステータスライン機能を設定したものの、ステータスラインが表示されない。

原因

スクリプトファイルに実行権限が付与されていなかった

解決方法

1. グローバル設定ファイルの作成

~/.claude/settings.json を作成:

mkdir -p ~/.claude
cat > ~/.claude/settings.json << 'EOF'
{
  "statusLine": {
    "type": "command",
    "command": "~/.claude/statusline.js"
  }
}
EOF

2. ステータスラインスクリプトの作成

~/.claude/statusline.js を作成(スクリプトの内容は元記事を参照)

3. 実行権限の付与(重要!)

chmod +x ~/.claude/statusline.js

この手順を忘れると、ステータスラインが表示されません。

4. Claude Codeを再起動

確認

正しく設定できていれば、画面下部にステータスラインが表示されます。

参考

0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?