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
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