<story><title>Show HN: Sensible Bash: An attempt at saner Bash defaults</title><url>https://github.com/mrzool/bash-sensible</url></story><parent_chain></parent_chain><comment><author>thom_nic</author><text>I feel like discussion of &amp;#x27;sensible bash defaults&amp;#x27; is incomplete without mention of .inputrc.  My most &amp;quot;can&amp;#x27;t live without it&amp;quot; setting for bash is actually an .inputrc setting:&lt;p&gt;&lt;pre&gt;&lt;code&gt;    # From http:&amp;#x2F;&amp;#x2F;www.ukuug.org&amp;#x2F;events&amp;#x2F;linux2003&amp;#x2F;papers&amp;#x2F;bash_tips&amp;#x2F;
    # Incremental searching with Up and Down is configured in .inputrc
    &amp;quot;\e[A&amp;quot;: history-search-backward
    &amp;quot;\e[B&amp;quot;: history-search-forward
&lt;/code&gt;&lt;/pre&gt;
... so if I type `ssh &amp;lt;up arrow&amp;gt;` I get the last command that started with `ssh`, not the last command I ran.  oh-my-zsh thankfully does this by default as well.  But I still use my .inputrc on server boxen where I don&amp;#x27;t want&amp;#x2F;need to install a different default shell.&lt;p&gt;Also worth noting that all of those `bind` commands in OP&amp;#x27;s script are actually .inputrc lines if you remove the `bind` and surrounding quotes.</text></comment>
<story><title>Show HN: Sensible Bash: An attempt at saner Bash defaults</title><url>https://github.com/mrzool/bash-sensible</url></story><parent_chain></parent_chain><comment><author>rout39574</author><text>May be an old-fart prejudice, but my eyes cross to think that &amp;#x27;dash and underline are equivalent&amp;#x27; might be a desired thing.   Making bash be clever seems like a pile of pitfalls.&lt;p&gt;To each their own.</text></comment>