To me, it genuinely makes a huge difference that I don’t have to manually press Ctrl+R for history search. Because 9 times out of 10, I accept a history suggestion from Fish where I did not think about whether it would be in my history.
This includes really mundane commands, like cd some/deeply/nested/path/. You would not believe, how often I want to cd into the same directory.
But I’ve also had it where I started typing a complicated docker run command and Fish suggests the exact command I want to write, because apparently I already ran that exact command months ago and simply forgot.
I used bash for 20 years and, while I obviously knew that there were alternatives, it never seemed necessary to switch. Tried fish on a whim a few months ago and I will never go back.
Yes exactly. I couldn’t find it on the fish online docs.
Alt-. apparently also work in bash, so i should just not use the ESC version.
I use it a lot for renaming and moving files.
Thanks.
To me, it genuinely makes a huge difference that I don’t have to manually press Ctrl+R for history search. Because 9 times out of 10, I accept a history suggestion from Fish where I did not think about whether it would be in my history.
This includes really mundane commands, like
cd some/deeply/nested/path/. You would not believe, how often I want tocdinto the same directory.But I’ve also had it where I started typing a complicated
docker runcommand and Fish suggests the exact command I want to write, because apparently I already ran that exact command months ago and simply forgot.I used bash for 20 years and, while I obviously knew that there were alternatives, it never seemed necessary to switch. Tried fish on a whim a few months ago and I will never go back.
Do you know if fish can input arguments from prevous commands like
ESC + .does in bash?Like Alt-.? (/ Alt - > ).
Easier in reach, and can cycle through.
I’ve not got that in my muscle memory yet… so rarely used… had to look that up. Handy. Should use more.
Yes exactly. I couldn’t find it on the fish online docs. Alt-. apparently also work in bash, so i should just not use the ESC version. I use it a lot for renaming and moving files. Thanks.
Hrm. Couldn’t find it on the fish online docs, ey? Worth a mention to https://github.com/fish-shell/fish-shell/issues ?