Today I Learned

A Hashrocket project

Use fc to fix commands in the shell

Ever type a long command wrong in the shell? Run fc — short for “fix command”. It will open your editor with the last command you typed. Edit and save the file and the fixed command will immediately run.