CL text replacement

Today I learned how to substitute text from the last run command:

^foo^bar # replaces foo with bar in the last run command
!!:gs/foo/bar # the same but globaly
fc -s foo=bar # same with fc

From Distrotube


About · Blog · TIL · Links · Projects · Contact ·