/plugin command fails to find git on Termux (Android)

Resolved 💬 2 comments Opened Mar 7, 2026 by dennispg Closed Mar 7, 2026

/plugin command fails to find git on Termux (Android)

Description

When running /plugin (or /doctor) in Claude Code on Termux, it reports that git is not installed, even though git is installed and fully functional.

Environment

  • Platform: Android (Termux)
  • Shell: zsh
  • Claude Code install method: npm (/data/data/com.termux/files/usr/bin/claude)
  • Git version: 2.53.0
  • Git location: /data/data/com.termux/files/usr/bin/git

Steps to Reproduce

  1. Install Termux on Android
  2. Install git: pkg install git
  3. Install Claude Code: npm install -g @anthropic-ai/claude-code
  4. Launch claude and run /plugin
  5. Observe the error message stating git is not installed

Expected Behavior

Claude Code should detect git via $PATH resolution, which would find it at /data/data/com.termux/files/usr/bin/git.

Actual Behavior

Claude Code reports that git is not installed and prompts to install it. Git works correctly for all other Claude Code operations (commits, diffs, repo detection, etc.) — only the /plugin command fails to find it.

Root Cause

Termux uses a non-standard filesystem layout. Binaries are installed under /data/data/com.termux/files/usr/bin/ rather than the standard /usr/bin/ or /usr/local/bin/ paths. The /plugin command likely checks hardcoded paths or uses a detection method that doesn't respect $PATH.

Suggested Fix

Use which git, command -v git, or similar PATH-based resolution instead of checking hardcoded binary paths.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗