if [[ "$TERM_PROGRAM" == "ghostty" ]]; then claude() { if [[ "$*" == *"-p"* || "$*" == *"--print"* ]]; then if [ -t 0 ]; then # stdin to TTY (brak pipe) — użyj /dev/null command claude "$@"