▲ | AyyEye 3 days ago | ||||||||||||||||
Mcfly[1] takes your working directory into account when searching shell history. From the readme: > The key feature of McFly is smart command prioritization powered by a small neural network that runs in real time. The goal is for the command you want to run to always be one of the top suggestions. > When suggesting a command, McFly takes into consideration: - The directory where you ran the command. You're likely to run that command in the same directory in the future. - What commands you typed before the command (e.g., the command's execution context). - How often you run the command. - When you last ran the command. - If you've selected the command in McFly before. - The command's historical exit status. You probably don't want to run old failed commands. | |||||||||||||||||
▲ | fragmede 3 days ago | parent | next [-] | ||||||||||||||||
> The directory where you ran the command. I love that mode in Atuin. I can never remember which of the run commands to use between make/cmake/bazel/yarn/npm/uv and hitting ctrl-r twice and scrolling up is better than having to root around in a readme, which I may or may not have bothered to write for my future self. McFly sounds interesting! Added it to my list of things to investigate. Does it do multi-machine syncing? | |||||||||||||||||
| |||||||||||||||||
▲ | fragmede 3 days ago | parent | prev [-] | ||||||||||||||||
> The command's historical exit status. You probably don't want to run old failed commands. Yeah but the other commands I ran is so that one succeeds. |