logoalt Hacker News

zahlmanyesterday at 1:24 AM1 replyview on HN

I'd try this, but I often find that I want to repeat a cycle of two or more commands. Yes, I probably should edit and put them on one line with semicolons (or even make a function), but.


Replies

henrik_wyesterday at 10:07 AM

Or put && between them - I had "compile;run" and when compile failed, it still ran (but the old build). Took me a while to figure out. && ensures the first command succeeds. Anyway, so worth it to combine commands into one line for easy re-run.