/plugin command fails to find git on Termux (Android)
/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
- Install Termux on Android
- Install git:
pkg install git - Install Claude Code:
npm install -g @anthropic-ai/claude-code - Launch
claudeand run/plugin - 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.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗