bced37dca2
The trace eraser was failing with "no previous regular expression" sed errors and wasn't effectively cleaning bash history. Problems fixed: • Broken sed pattern matching (caused errors, unreliable) • Pattern-based deletion doesn't catch all toolkit usage • In-memory history wasn't being cleared New approach: • Simply removes last 50 entries from bash history files • More reliable than pattern matching (catches downloads, usage, everything) • Clears in-memory history with history -c && history -w • Creates .bak backup before cleaning • Handles both root and user histories • Changed system log cleaning from sed to grep -v (more reliable) • Added symlink check for log files This ensures the last 50 commands (covering toolkit download, installation, and usage) are completely removed from bash history.