From 22627d56e2e5a7cbecb2ae121797cbbc39b75cfc Mon Sep 17 00:00:00 2001 From: Narsty Date: Thu, 22 Jun 2023 21:23:34 -0500 Subject: [PATCH] Update README.md --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b8d3bdd..dc738a9 100644 --- a/README.md +++ b/README.md @@ -82,11 +82,14 @@

- This code enables the ignorespace option for the command history, preventing commands with a leading space from being stored in the shell history. This allows us to leave little to no traces, which keeps the code discreet. Big shoutout to FalsePhilosopher for helping me create this string! + This code enables the `ignorespace` option for the command history, preventing commands with a leading space from being stored in the shell history. Additionally, it removes the specific command from the history, ensuring minimal traces are left behind. This helps maintain discretion and privacy. + Big shoutout to FalsePhilosopher for helping me create this string!

 
-'STRING echo -e "export HISTCONTROL=ignorespace\nunset HISTFILE" >> ~/.bashrc && source ~/.bashrc && exec bash'
+'echo -e "export HISTCONTROL=ignorespace\nunset HISTFILE" >> ~/.bashrc && source ~/.bashrc && exec bash
+history -d $(history | tail -n 2 | head -n 1 | awk '{ print $1 }')
+'