Skip to content

Instantly share code, notes, and snippets.

View epaprat's full-sized avatar
🎯
Focusing

Ertaç Paprat epaprat

🎯
Focusing
View GitHub Profile
@epaprat
epaprat / statusline-command.sh
Last active April 29, 2026 20:37
statusline-command.sh
#!/usr/bin/env bash
# Claude Code status line — all metrics, color-coded, Unicode bar
# Segments: dir | git | model | ctx bar+% | tokens | cost | lines | duration | time | 200K warn
input=$(cat)
# --- Parse all JSON fields
cwd=$(echo "$input" | jq -r '.workspace.current_dir // .cwd // empty')
model=$(echo "$input" | jq -r '.model.display_name // empty')
used_pct=$(echo "$input" | jq -r '.context_window.used_percentage // empty')
"""A simple implementation of a greedy transition-based parser. Released under BSD license."""
from os import path
import os
import sys
from collections import defaultdict
import random
import time
import pickle
SHIFT = 0; RIGHT = 1; LEFT = 2;
#!/usr/bin/env bash
# file: ~/.virtualenvs/postmkvirtualenv
# This hook is run after a new virtualenv is activated.
# setup python interpretor and sitepackages
# for Sublime Text's SublimeCodeIntel plugin.
# codeintel looks in the root of any folder opened via `subl foldername`
# for foldername/.codeintel/config
# it also looks in ~/.codeintel/config