From 8c5f9db14bf93457f430c879e51d658253edea3e Mon Sep 17 00:00:00 2001 From: cschantz Date: Tue, 11 Nov 2025 17:34:14 -0500 Subject: [PATCH] Add leading space tip to trace eraser MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changes: - Add tip about using leading space to prevent history recording - Shows example with space before curl command - Explains HISTCONTROL=ignorespace behavior Best Practice: curl -sL https://git.mull.lol/.../tar.gz | tar xz ↑ Leading space prevents command from being saved to history Works on most systems where HISTCONTROL includes ignorespace --- tools/erase-toolkit-traces.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tools/erase-toolkit-traces.sh b/tools/erase-toolkit-traces.sh index b70294c..cb5c050 100755 --- a/tools/erase-toolkit-traces.sh +++ b/tools/erase-toolkit-traces.sh @@ -19,7 +19,15 @@ echo " • System logs (toolkit operations)" echo " • Download records" echo " • Temporary files" echo "" -echo -e "${RED}WARNING: This cannot be undone!${NC}" +echo -e "${YELLOW}TIP: Prevent history recording in the first place!${NC}" +echo "Add a space before commands to prevent them from being saved:" +echo "" +echo " ${GREEN} curl -sL https://git.mull.lol/.../archive/main.tar.gz | tar xz${NC}" +echo " ${DIM}↑ Notice the leading space${NC}" +echo "" +echo "This works if HISTCONTROL includes 'ignorespace' (default on most systems)" +echo "" +echo -e "${RED}WARNING: This trace eraser cannot be undone!${NC}" echo "" read -p "Are you sure you want to proceed? (yes/no): " confirm