aboutsummaryrefslogtreecommitdiffhomepage
path: root/bin/__claude-code-statusline
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-08-10 15:01:03 +0900
committernsfisis <nsfisis@gmail.com>2025-08-10 15:01:03 +0900
commit4150ce25e87d8cbf3f067e6aabd8b1e836dbc683 (patch)
tree1abf63413ad205728c29272f0f7d772c2476d8c7 /bin/__claude-code-statusline
parent16cb785971dda429fae4028c3b63de81e3c8f246 (diff)
downloaddotfiles-4150ce25e87d8cbf3f067e6aabd8b1e836dbc683.tar.gz
dotfiles-4150ce25e87d8cbf3f067e6aabd8b1e836dbc683.tar.zst
dotfiles-4150ce25e87d8cbf3f067e6aabd8b1e836dbc683.zip
claude: set up statusline
Diffstat (limited to 'bin/__claude-code-statusline')
-rwxr-xr-xbin/__claude-code-statusline9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/__claude-code-statusline b/bin/__claude-code-statusline
new file mode 100755
index 0000000..2004db6
--- /dev/null
+++ b/bin/__claude-code-statusline
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+
+# https://docs.anthropic.com/en/docs/claude-code/statusline
+
+input="$(cat)"
+cwd="$(echo "$input" | jq -r '.cwd')"
+model="$(echo "$input" | jq -r '.model.display_name')"
+
+echo "[$model] ${cwd/#$HOME/\~}"