A custom status line script for Claude Code that displays directory, git branch, model, context window usage, and rate limits in the terminal.
The script requires standard tools available on most Linux systems:
bashjq
| version: '3.4' | |
| secrets: | |
| # Find your registration token at: "Your project" > "Settings" > "CI/CD" > "Runners settings" > "Specific Runners" (look for registration token) | |
| # Register it as `GITLAB_REGISTRATION_TOKEN`: `docker secret create GITLAB_REGISTRATION_TOKEN YOUR_REGISTRATION_TOKEN` | |
| GITLAB_REGISTRATION_TOKEN: | |
| external: true | |
| # Find your personal access token at: "Your user account" > "Settings" > "Access Tokens" > "Create personal access token" (for api) | |
| # Register it as `GITLAB_PERSONAL_ACCESS_TOKEN`: `docker secret create GITLAB_PERSONAL_ACCESS_TOKEN <YOUR ACCESS TOKEN>` |
| <?php | |
| use League\CommonMark\Block\Element\AbstractBlock; | |
| use League\CommonMark\Block\Element\Paragraph; | |
| use League\CommonMark\Block\Renderer\BlockRendererInterface; | |
| use League\CommonMark\CommonMarkConverter; | |
| use League\CommonMark\ElementRendererInterface; | |
| use League\CommonMark\Environment; | |
| use Twig_Extension; |
I hereby claim:
To claim this, I am signing this object:
{| #!/usr/bin/env bash | |
| # thanks to https://lists.debian.org/debian-user/2012/03/msg01962.html | |
| exec >>/home/vagrant/bootstrap.out 2>&1 | |
| set -x | |
| echo "UseDNS no" >> /etc/ssh/sshd_config | |
| echo "127.0.0.1 ubuntu-16.04-server-amd64" >> /etc/hosts | |
| mkdir -p /home/vagrant/.ssh |