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 }')
+'