• 0 Posts
  • 3 Comments
Joined 4 years ago
cake
Cake day: January 15th, 2021

help-circle


  • Let me tell you that you can also add comments to your terminal commands and use them to search history using fzf. This might sound confusing but basically you do this:

    commandwithweirdoptions --option1=value1 --option2=value2 # run the usual thing

    Then you press Ctrl+R and type anything like «the thing», it uses fuzzy matching and finds the command in history, with a menu of other similar commands. Press enter, done.

    Note that you need to have fzf installed, otherwise there is no fuzzy matching and no menu of matching history results.