How can I tell a BASH reverse search (ctrl+r) that the string I give it should be the start of the command line?
E.g. in my system I have 2 common programs: "activate module" and "deactivate module", but when searching for "activate" I don't want to get any results about "deactivate". When I start the search string with an "^" the reverse search seems to stop working, I can no longer input anything and have to abort it via Ctrl+C.
(The solution of How do I change bash history completion to complete what's already on the line? is not working, since a search via that for "acti" gives as first result "deactivate", and so a result I do not want to get.
The solution of Bash: select a previous command that matches a pattern is not addressing my question of only including hits that include the beginning of the line...