DEV Community

Discussion on: [Video] Super Useful (lesser known) Terminal Command

Collapse
 
moopet profile image
Ben Sinclair • Edited

If I don't want to run the command I'm editing - if I change my mind - then I can't prevent it. Either exiting with no changes or exiting without saving will still result in the command being run. I suppose I could add a hash to the start of the line to comment it out but that seems like a bit of a hack.

I've been vaguely aware of fc for a while, but I haven't seen any benefit to it except over extremely long command lines, which I'd prefer were split out in a script anyway.