Is there a way to run sage and have sage automatically run a command (such as attaching a file)? I do not want to put the attach command in the init.sage file, because I only want sage to attach my code when I am working on my project, not for general use.
Perhaps another way of thinking about is how can I run a sage script, and have it exit into an interactive shell? Then I would be able to run sage mycode.sage, and have the desired behavior.
Thank you.