Ask HN: Command-Line Completion and Discoverability?

2 points by mettamage ↗ HN
Is there a utility that if I just type in

lin

That it will show

link -s <TARGET> <SYMLINK>

and potential 5 other commands that are close to it (newlined)?

So like, it'll show the common use of that command (or perhaps the synopsis of the man pages but that already seems overkill).

1 comment

[ 3.5 ms ] story [ 12.3 ms ] thread
fish shell gets somewhat close to this, in that it will show a hint of the most recent similar command from your history. If there is no recent similar command it can still tab complete and can infer a completion from help/manpage

Edit: BTW this is actually a fantastic idea, I don't know if anything quite does this yet