1. 5
  1.  

  2. 2

    Another useful inputrc configuration to save strokes is:

    "\e[A": history-search-backward
    "\e[B": history-search-forward
    

    The above maps to your up and down arrow. This will filter lines that start with whatever you type. So if you’d say a thing like:

    > scp <press up arrow>
    

    you’ll go backwards in history only showing commands that start with scp.

    The bonus is that this also works in a mysql shell. Makes it nice to quickly filter through your select queries or use statements, etc.

    http://showterm.io/2a5dfbc6b9bb9745b2992