I wish there was even better way to preserve the context of what you were doing at the time (env variables, current path at the time etc).
PS: be sure to always have a -—help option that describes the function, just as you would do when programming
PS: be sure to always have a -—help option that describes the function, just as you would do when programming