<story><title>Shellfirm: Intercept risky patterns at the command line</title><url>https://github.com/kaplanelad/shellfirm</url></story><parent_chain><item><author>makeitdouble</author><text>This kind of tool needs context awareness to be useful.&lt;p&gt;After the first 30~40 times you’re asked if you want to delete these pods, solving the question coming next becomes automatic. If you’re in a “I’m on my dev env, nothing bad can happen” mindset, that prompt won’t get you out of it, it will just be a tedious step, we’ve seen that time and time again.&lt;p&gt;It becomes a lot more interesting if it can ask “you’re going to delete from the cluster prod, do you really want to ?” and only do so for production.&lt;p&gt;Same for “rm -f” really, if it can confirm before you’re deleting a tree of thousands of file, and not when it’s 3 empty directories you created 3 min ago.</text></item></parent_chain><comment><author>lamontcg</author><text>This is the same logic as &amp;quot;sudo forces people to think about what they&amp;#x27;re typing&amp;quot;, which it doesn&amp;#x27;t, it just makes you type sudo and your password really quickly and equally mindlessly.</text></comment>
<story><title>Shellfirm: Intercept risky patterns at the command line</title><url>https://github.com/kaplanelad/shellfirm</url></story><parent_chain><item><author>makeitdouble</author><text>This kind of tool needs context awareness to be useful.&lt;p&gt;After the first 30~40 times you’re asked if you want to delete these pods, solving the question coming next becomes automatic. If you’re in a “I’m on my dev env, nothing bad can happen” mindset, that prompt won’t get you out of it, it will just be a tedious step, we’ve seen that time and time again.&lt;p&gt;It becomes a lot more interesting if it can ask “you’re going to delete from the cluster prod, do you really want to ?” and only do so for production.&lt;p&gt;Same for “rm -f” really, if it can confirm before you’re deleting a tree of thousands of file, and not when it’s 3 empty directories you created 3 min ago.</text></item></parent_chain><comment><author>davedx</author><text>When I used to admin Windows servers we had production’s desktop background set to red, that worked well, especially when you had multiple remote desktop sessions open. Wonder if that’s doable for non-GUI enabled Linux servers</text></comment>