Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I have a `run` bash file where I just return exit 0 on third line. Then I can copy/paste anything I need up from below the exit 0.

Silly, yes. but it's super easy and extremely fast.



> exit 0

If you use `exit $?` instead, you will preserve the exit status from the previous command.


thanks! Learning every day


It's great.


Thanks. Simple and dirty, but works everytime.

Even more, I put a vim shortcut so I can run it without leaving the terminal.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: