Inlcude regex and/or globbing in search query
Problem
The search query appears to only match entire words. Rarely-used commands are hard to find without knowing the complete word.
e.g. Finding an ssh option like PubkeyAuthentication
in this command:
ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no ubuntu@192.168.0.7
I'd have to know the complete option name since searching for just Pubkey
or Auth
doesn't match the command I'm looking for:
$ bh Pubkey
$ bh Auth
cat auth
$ bh PubkeyAuthentication
ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no ubuntu@192.168.0.7
Desired behaviour
Option 1. Automatically match partial words
$ bh Pubkey
ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no ubuntu@192.168.0.7
Option 2. Require regex or globbing to match partial words
$ bh "Pubkey*"
ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no ubuntu@192.168.0.7
or
$ bh "\w*Auth\w*"
ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no ubuntu@192.168.0.7