JosephStoneCellAI commited on
Commit
a8a1280
·
verified ·
1 Parent(s): 2ebfc56

Create bashrc-termux

Browse files
Files changed (1) hide show
  1. bashrc-termux +47 -0
bashrc-termux ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export android_ndk_path="/data/data/com.termux/files/usr/share/android-ndk"
2
+
3
+ # ============================================
4
+ # FIX PASTE - Removes unwanted line breaks from pasted commands
5
+ # Usage: fp "your pasted command here"
6
+ # Or: fixpaste "your pasted command"
7
+ # ============================================
8
+ fp() { # Join lines, collapse multiple spaces, trim
9
+ local cmd=$(echo "$*" | tr '\n' ' ' | sed 's/ */ /g' | sed 's/^ *//;s/ *$//')
10
+ echo "Fixed command:"
11
+ echo "$cmd"
12
+ echo ""
13
+ read -p "Run it? [Y/n] " -n 1 -r
14
+ echo
15
+ if [[ $REPLY =~ ^[Yy]$ ]] || [[ -z $REPLY ]]; then
16
+ eval "$cmd"
17
+ fi
18
+ }
19
+ alias fixpaste='fp'
20
+
21
+ # Alternative: Auto-fix when pasting with Ctrl+Shift+V
22
+ # Bind paste to fix function (experimental)
23
+ bind '"\C-v": "\C-a\C-kfp \"\C-y\"\C-m"' 2>/dev/null
24
+
25
+
26
+ # Quick fix - just echoes the fixed command (copy it)
27
+ qf() {
28
+ echo "$*" | tr '\n' ' ' | sed 's/ */ /g' | sed 's/^ *//;s/ *$//'
29
+ }
30
+
31
+ # Run fixed - fixes and runs immediately (no prompt)
32
+ rf() {
33
+ local cmd=$(echo "$*" | tr '\n' ' ' | sed 's/ */ /g' | sed 's/^ *//;s/ *$//')
34
+ eval "$cmd"
35
+ }
36
+
37
+ export CLAUDE_CODE_DISABLE_TELEMETRY=1
38
+ export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1
39
+
40
+ # Created by `pipx` on 2026-01-30 05:58:13
41
+ export PATH="$PATH:/data/data/com.termux/files/home/.local/bin"
42
+ export SPF_BRAIN_DIR=~/SPFsmartGATE/LIVE/TMP/stoneshell-brain
43
+ export NODE_OPTIONS="--max-old-space-size=6144"
44
+ export OPENROUTER_API_KEY="nvapi-xV5n0lm-YOUR-API-KEY-HERE-8xxSDOdB"
45
+ export ANTHROPIC_BASE_URL="https://integrate.api.nvidia.com/v1"
46
+ export ANTHROPIC_AUTH_TOKEN="$OPENROUTER_API_KEY"
47
+ export ANTHROPIC_API_KEY=""