2026-04-26 22:30:25 +00:00
|
|
|
# === 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
|
2026-06-16 12:58:57 +00:00
|
|
|
|
2026-07-20 01:56:51 +00:00
|
|
|
# === Optional: Samba service helpers ===
|
|
|
|
|
# Only useful if you set up smbd (see docs/03-samba.md).
|
2026-06-16 12:58:57 +00:00
|
|
|
|
|
|
|
|
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'
|
|
|
|
|
|
2026-07-20 01:56:51 +00:00
|
|
|
# === Optional: auto-start Samba on shell login ===
|
|
|
|
|
# Uncomment if you want smbd up automatically.
|
2026-06-16 12:58:57 +00:00
|
|
|
# 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
|
2026-07-20 01:56:51 +00:00
|
|
|
|
|
|
|
|
# === Companion repo: mdns-termux ===
|
|
|
|
|
# For host resolution (.local + Tailscale) install:
|
|
|
|
|
# https://devops.ingeniumcodex.com/andresgarcia0313/mdns-termux
|