SPFsmartGATE / bashrc-termux
JosephStoneCellAI's picture
Create bashrc-termux
a8a1280 verified
export android_ndk_path="/data/data/com.termux/files/usr/share/android-ndk"
# ============================================
# FIX PASTE - Removes unwanted line breaks from pasted commands
# Usage: fp "your pasted command here"
# Or: fixpaste "your pasted command"
# ============================================
fp() { # Join lines, collapse multiple spaces, trim
local cmd=$(echo "$*" | tr '\n' ' ' | sed 's/ */ /g' | sed 's/^ *//;s/ *$//')
echo "Fixed command:"
echo "$cmd"
echo ""
read -p "Run it? [Y/n] " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]] || [[ -z $REPLY ]]; then
eval "$cmd"
fi
}
alias fixpaste='fp'
# Alternative: Auto-fix when pasting with Ctrl+Shift+V
# Bind paste to fix function (experimental)
bind '"\C-v": "\C-a\C-kfp \"\C-y\"\C-m"' 2>/dev/null
# Quick fix - just echoes the fixed command (copy it)
qf() {
echo "$*" | tr '\n' ' ' | sed 's/ */ /g' | sed 's/^ *//;s/ *$//'
}
# Run fixed - fixes and runs immediately (no prompt)
rf() {
local cmd=$(echo "$*" | tr '\n' ' ' | sed 's/ */ /g' | sed 's/^ *//;s/ *$//')
eval "$cmd"
}
export CLAUDE_CODE_DISABLE_TELEMETRY=1
export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1
# Created by `pipx` on 2026-01-30 05:58:13
export PATH="$PATH:/data/data/com.termux/files/home/.local/bin"
export SPF_BRAIN_DIR=~/SPFsmartGATE/LIVE/TMP/stoneshell-brain
export NODE_OPTIONS="--max-old-space-size=6144"
export OPENROUTER_API_KEY="nvapi-xV5n0lm-YOUR-API-KEY-HERE-8xxSDOdB"
export ANTHROPIC_BASE_URL="https://integrate.api.nvidia.com/v1"
export ANTHROPIC_AUTH_TOKEN="$OPENROUTER_API_KEY"
export ANTHROPIC_API_KEY=""