I once found an amazing bash option, but now I can't remember how to re-enable it.
It extended autocomplete to look at your most recent history. So if you'd previously typed open index.html
and then open map.html
, typing
$ op
and pressing Tab once would autocomplete to open map.html
. Pressing Tab again would autocomplete to open index.html
.
Does anyone know how I can re-enable this?
Best Answer
Run in your bash:
Relogin to the ssh session, or simply reload inputrc:
Now use ⬆ and ⬇ after entering the beginning of the command - it will auto-complete from history.