This commit is contained in:
Narstybits
2023-07-12 18:17:34 -05:00
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ STRING terminal
DELAY 500
ENTER
DELAY 1000
STRING sudo softwareupdate -ia --verbose 2>&1 | pv -l -s "$(softwareupdate -l | wc -l)" -p -t -i 1
STRING softwareupdate -ia --verbose 2>&1 | pv -l -s "$(softwareupdate -l | wc -l)" -p -t -i 1
DELAY 1000
ENTER
+3 -2
View File
@@ -1,5 +1,5 @@
<!DOCTYPE html>
[![Image Description](https://imgur.com/dGFm5SP.png)](https://github.com/narstybits/MacOS-DuckyScripts)
[![Image Description](https://i.imgur.com/vKdvKVp.png)](https://github.com/narstybits/MacOS-DuckyScripts)
<div align="left">
@@ -74,7 +74,8 @@ If you're a visual learner like me, check out this detailed tutorial by [wrencha
<h4>The 'ignorespace' Option</h4>
<img alt="Coding" width="320" height="5" src="https://media.giphy.com/media/9JxkPTP3alOykb8PmQ/giphy.gif">
<pre><code>'echo -e "export HISTCONTROL=ignorespace\nunset HISTFILE" >> ~/.bashrc && source ~/.bashrc && exec bash'</code></pre>
<p>This code enables the 'ignorespace' option for the command history, preventing commands with a leading space from being stored in the shell history. Special thanks to [FalsePhilosopher](https://github.com/FalsePhilosopher) for helping create this string!</p>
<p>This code enables the 'ignorespace' option for the command history, preventing commands with a leading space from being stored in the shell history. Special thanks to <a href='https://github.com/FalsePhilosopher'>FalsePhilosopher</a>
for helping create this string!</p>
<h4>Removing Specific Commands from History</h4>
<img alt="Coding" width="320" height="5" src="https://media.giphy.com/media/9JxkPTP3alOykb8PmQ/giphy.gif">