Files
ponytail/hooks/ponytail-statusline.sh

12 lines
333 B
Bash

#!/usr/bin/env bash
flag="$HOME/.claude/.ponytail-active"
[ -f "$flag" ] || exit 0
mode=$(head -n1 "$flag" | tr -d '[:space:]')
if [ -z "$mode" ] || [ "$mode" = "full" ]; then
printf '\033[38;5;108m[PONYTAIL]\033[0m'
else
printf '\033[38;5;108m[PONYTAIL:%s]\033[0m' "$(printf '%s' "$mode" | tr '[:lower:]' '[:upper:]')"
fi