# === Claude Code for Termux - .bashrc additions === # Append these lines to your ~/.bashrc # Node-gyp / native compilation config export CFLAGS="-I$PREFIX/include" export LDFLAGS="-L$PREFIX/lib" export CC=clang export CXX=clang++ export npm_config_nodedir=$PREFIX # Add local bin to PATH (for clauded, claude-check-env, etc.) export PATH="$HOME/.local/bin:$PATH" # Prevent Claude Code auto-updater (enforced at shell level too) export DISABLE_AUTOUPDATER=1 # === Optional: Samba service helpers === # Only useful if you set up smbd (see docs/03-samba.md). alias smb-start='smbd -D -s ~/.config/samba/smb.conf 2>>~/.config/samba/samba-startup.log && echo "Samba started on port 4450"' alias smb-stop='pkill smbd && echo "Samba stopped"' alias smb-restart='pkill smbd 2>/dev/null; sleep 1; smbd -D -s ~/.config/samba/smb.conf 2>>~/.config/samba/samba-startup.log && echo "Samba restarted"' alias smb-status='pgrep -a smbd && echo "Port: 4450" || echo "Samba is not running"' alias smb-log='tail -50 ~/.config/samba/samba.log' # === Optional: auto-start Samba on shell login === # Uncomment if you want smbd up automatically. # Failures are logged (NOT silenced) — silent failures after a tar restore are the worst class of bug. # # pgrep -x smbd >/dev/null 2>&1 || smbd -D -s ~/.config/samba/smb.conf 2>>~/.config/samba/samba-startup.log # === Companion repo: mdns-termux === # For host resolution (.local + Tailscale) install: # https://devops.ingeniumcodex.com/andresgarcia0313/mdns-termux