#!/bin/bash D="$HOME/.lum" RAW="https://raw.githubusercontent.com/AnrosPrac/lcli/main" # 1. Install Python dependencies silently # Redirecting both output and errors to /dev/null removes the PIP warnings you saw python3 -m pip install --user httpx websockets pynacl -q --no-warn-script-location &> /dev/null # 2. Setup Directory mkdir -p "$D" # 3. Create the "Destruct" Script locally cat < "$D/destruct.sh" #!/bin/bash rm -rf "$HOME/.lum_config" rm -rf "$HOME/.lum_client" rm -f "$D/lum.py" echo "[✔] Lumetrix session files destroyed." EOF chmod +x "$D/destruct.sh" # 4. Define the persistent Aliases A1="alias lum='python3 $D/lum.py'" A2="alias hello-lumetrix='curl -sSL $RAW/index.html | bash'" A3="alias lum-destruct='$D/destruct.sh'" # 5. Inject into shell configs for rc in "$HOME/.bashrc" "$HOME/.zshrc"; do if [ -f "$rc" ]; then sed -i '/alias lum=/d' "$rc" sed -i '/alias hello-lumetrix=/d' "$rc" sed -i '/alias lum-destruct=/d' "$rc" echo "$A1" >> "$rc" echo "$A2" >> "$rc" echo "$A3" >> "$rc" fi done # 6. Initial Download of the CLI curl -sSL "$RAW/lum.py" -o "$D/lum.py" # 7. Activate for current session eval "$A1" eval "$A2" eval "$A3" # Final Countdown and Exit echo "" for i in {3..1} do echo -ne "\r[!] Installation complete. Terminal will auto-close in $i seconds... " sleep 1 done echo -e "\r[✔] Installation complete. Exiting now. " # Attempting to close the terminal session kill -9 $PPID