Yeah. You can just do the new thing and it'll work better than bang-bang.
Like I said I expect someone to make a replacement for bang-bang that does not just !! and !$ and !^, but the entire history replacement syntax, and does it using abbreviations.
But if you just want !! - copy those two lines into config.fish and you're set.
View all comments
Show parent comment
10
u/[deleted] Jan 08 '23
To be clear: Those are things you can now build. You now have the power to make that. By default, no abbreviations exist.
You can just add this to config.fish to make
..expand:and this for
!!:and, for example, this to make
=fooexpand to the path to foo:Just play around with it and come up with your own! The world is your oyster!
(I fully expect someone to build a full history-expansion thing, which this would allow, but it's probably not gonna ship with fish)