Update README.md
This commit is contained in:
@@ -82,11 +82,14 @@
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
This code enables the <em>ignorespace</em> 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 <a href="https://github.com/FalsePhilosopher">FalsePhilosopher</a> 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 <a href="https://github.com/FalsePhilosopher">FalsePhilosopher</a> for helping me create this string!
|
||||
</p>
|
||||
<pre>
|
||||
<code>
|
||||
'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 }')
|
||||
'
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user