Skip to content

Instantly share code, notes, and snippets.

@navinpeiris
navinpeiris / statusline.sh
Created April 20, 2026 11:42
Navin's Claude Code Status Line
#!/usr/bin/env bash
#
# Navin's custom Claude Code statusline. Inspired by claude-hud and many others.
#
# Put this script at `~/.claude/statusline.sh` and add the following to your
# `~/.claude/settings.json`:
#
# ```json
# "statusLine": {
@navinpeiris
navinpeiris / text.exs
Created February 22, 2026 06:48
test.exs config for branch specific db's
git_branch =
case System.cmd("git", ["rev-parse", "--abbrev-ref", "HEAD"]) do
{branch, 0} -> String.trim(branch)
_ -> ""
end
db_suffix =
if git_branch == "main" do
""
else