Skip to content

Instantly share code, notes, and snippets.

@azu
azu / difit-auto-detect.sh
Last active March 7, 2026 11:40
cmux browser open-split difit review
#!/bin/bash
# =============================================================================
# difit-auto-detect.sh
# Automatically detects git state and opens appropriate diff view
# with difit in a cmux browser split pane.
#
# Dependencies:
# - cmux https://cmux.app/
# - difit https://github.com/yoshiko-pg/difit