feat: Claudeのステータスラインを追加 - #42
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…line # Conflicts: # scripts/setup/link_dotfiles.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
やったこと
変更内容
Claude Code のステータスラインを表示するスクリプト
claude/statusline-command.shを追加しました。モデル名 / コンテキスト使用率バー / コスト / レート制限 / 経過時間を表示します。scripts/setup/link_dotfiles.shのリンク一覧にも追加したので、セットアップ時に~/.claude/statusline-command.shへリンクが張られます。ShellCheck 対応
CI の対象(
*.sh)に入るため、手元のスクリプトから以下 4 点を修正しています。いずれも挙動は変わりません。C_SEPの定義を削除cd "$DIR" 2>/dev/nullに|| trueを追加(失敗時に継続する既存挙動を維持)${DIR#$HOME}を${DIR#"$HOME"}に変更local pct=$(...)を宣言と代入に分離動作確認
zsh -n scripts/setup/link_dotfiles.shの構文チェックを通過補足
jqに依存しますが、Brewfile に既に含まれています。🤖 Generated with Claude Code